Lines Matching refs:sourceMask
239 int32_t InputDevice::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument
240 return getState(sourceMask, keyCode, &InputMapper::getKeyCodeState); in getKeyCodeState()
243 int32_t InputDevice::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
244 return getState(sourceMask, scanCode, &InputMapper::getScanCodeState); in getScanCodeState()
247 int32_t InputDevice::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
248 return getState(sourceMask, switchCode, &InputMapper::getSwitchState); in getSwitchState()
251 int32_t InputDevice::getState(uint32_t sourceMask, int32_t code, GetStateFunc getStateFunc) { in getState() argument
254 if (sourcesMatchMask(mapper->getSources(), sourceMask)) { in getState()
257 int32_t currentResult = (mapper->*getStateFunc)(sourceMask, code); in getState()
268 bool InputDevice::markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, in markSupportedKeyCodes() argument
272 if (sourcesMatchMask(mapper->getSources(), sourceMask)) { in markSupportedKeyCodes()
273 result |= mapper->markSupportedKeyCodes(sourceMask, numCodes, keyCodes, outFlags); in markSupportedKeyCodes()