Lines Matching refs:sourceMask
465 int32_t InputDevice::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument
466 return getState(sourceMask, keyCode, &InputMapper::getKeyCodeState); in getKeyCodeState()
469 int32_t InputDevice::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
470 return getState(sourceMask, scanCode, &InputMapper::getScanCodeState); in getScanCodeState()
473 int32_t InputDevice::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
474 return getState(sourceMask, switchCode, &InputMapper::getSwitchState); in getSwitchState()
477 int32_t InputDevice::getState(uint32_t sourceMask, int32_t code, GetStateFunc getStateFunc) { in getState() argument
484 if (sourcesMatchMask(mapper.getSources(), sourceMask)) { in getState()
487 int32_t currentResult = (mapper.*getStateFunc)(sourceMask, code); in getState()
573 bool InputDevice::markSupportedKeyCodes(uint32_t sourceMask, const std::vector<int32_t>& keyCodes, in markSupportedKeyCodes() argument
576 for_each_mapper([&result, sourceMask, keyCodes, outFlags](InputMapper& mapper) { in markSupportedKeyCodes()
577 if (sourcesMatchMask(mapper.getSources(), sourceMask)) { in markSupportedKeyCodes()
578 result |= mapper.markSupportedKeyCodes(sourceMask, keyCodes, outFlags); in markSupportedKeyCodes()