Lines Matching refs:keyBitmask
147 memset(keyBitmask, 0, sizeof(keyBitmask)); in Device()
333 if (device && !device->isVirtual() && test_bit(scanCode, device->keyBitmask)) { in getScanCodeState()
422 if (test_bit(scanCodes[sc], device->keyBitmask)) { in markSupportedKeyCodes()
487 if (test_bit(scanCode, device->keyBitmask)) { in hasScanCode()
1149 ioctl(fd, EVIOCGBIT(EV_KEY, sizeof(device->keyBitmask)), device->keyBitmask); in openDeviceLocked()
1159 bool haveKeyboardKeys = containsNonZeroByte(device->keyBitmask, 0, sizeof_bit_array(BTN_MISC)) in openDeviceLocked()
1160 || containsNonZeroByte(device->keyBitmask, sizeof_bit_array(KEY_OK), in openDeviceLocked()
1162 bool haveGamepadButtons = containsNonZeroByte(device->keyBitmask, sizeof_bit_array(BTN_MISC), in openDeviceLocked()
1164 || containsNonZeroByte(device->keyBitmask, sizeof_bit_array(BTN_JOYSTICK), in openDeviceLocked()
1171 if (test_bit(BTN_MOUSE, device->keyBitmask) in openDeviceLocked()
1184 if (test_bit(BTN_TOUCH, device->keyBitmask) || !haveGamepadButtons) { in openDeviceLocked()
1188 } else if (test_bit(BTN_TOUCH, device->keyBitmask) in openDeviceLocked()
1446 if (!device->keyMap.haveKeyLayout() || !device->keyBitmask) { in hasKeycodeLocked()
1455 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, device->keyBitmask)) { in hasKeycodeLocked()