Lines Matching refs:keyBitmask
152 memset(keyBitmask, 0, sizeof(keyBitmask)); in Device()
357 if (device && device->hasValidFd() && test_bit(scanCode, device->keyBitmask)) { in getScanCodeState()
446 if (test_bit(scanCodes[sc], device->keyBitmask)) { in markSupportedKeyCodes()
525 if (test_bit(scanCode, device->keyBitmask)) { in hasScanCode()
1201 ioctl(fd, EVIOCGBIT(EV_KEY, sizeof(device->keyBitmask)), device->keyBitmask); in openDeviceLocked()
1211 bool haveKeyboardKeys = containsNonZeroByte(device->keyBitmask, 0, sizeof_bit_array(BTN_MISC)) in openDeviceLocked()
1212 || containsNonZeroByte(device->keyBitmask, sizeof_bit_array(KEY_OK), in openDeviceLocked()
1214 bool haveGamepadButtons = containsNonZeroByte(device->keyBitmask, sizeof_bit_array(BTN_MISC), in openDeviceLocked()
1216 || containsNonZeroByte(device->keyBitmask, sizeof_bit_array(BTN_JOYSTICK), in openDeviceLocked()
1223 if (test_bit(BTN_MOUSE, device->keyBitmask) in openDeviceLocked()
1245 if (test_bit(BTN_TOUCH, device->keyBitmask) || !haveGamepadButtons) { in openDeviceLocked()
1249 } else if (test_bit(BTN_TOUCH, device->keyBitmask) in openDeviceLocked()
1255 test_bit(BTN_TOUCH, device->keyBitmask)) in openDeviceLocked()
1579 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, device->keyBitmask)) { in hasKeycodeLocked()