Lines Matching refs:keyBitmask
667 if (sc >= 0 && sc <= KEY_MAX && keyBitmask.test(sc)) { in hasKeycodeLocked()
1056 if (device == nullptr || !device->hasValidFd() || !device->keyBitmask.test(scanCode)) { in getScanCodeState()
1473 return device->keyBitmask.test(scanCode); in hasScanCode()
2359 device->readDeviceBitMask(EVIOCGBIT(EV_KEY, 0), device->keyBitmask); in openDeviceLocked()
2371 device->keyBitmask.any(0, BTN_MISC) || device->keyBitmask.any(BTN_WHEEL, KEY_MAX + 1); in openDeviceLocked()
2372 bool haveGamepadButtons = device->keyBitmask.any(BTN_MISC, BTN_MOUSE) || in openDeviceLocked()
2373 device->keyBitmask.any(BTN_JOYSTICK, BTN_DIGI); in openDeviceLocked()
2374 bool haveStylusButtons = device->keyBitmask.test(BTN_STYLUS) || in openDeviceLocked()
2375 device->keyBitmask.test(BTN_STYLUS2) || device->keyBitmask.test(BTN_STYLUS3); in openDeviceLocked()
2381 if (device->keyBitmask.test(BTN_MOUSE) && device->relBitmask.test(REL_X) && in openDeviceLocked()
2402 if (device->keyBitmask.test(BTN_TOUCH) || !haveGamepadButtons) { in openDeviceLocked()
2405 !device->keyBitmask.any(BTN_TOOL_PEN, BTN_TOOL_FINGER) && !haveStylusButtons) { in openDeviceLocked()
2410 } else if (device->keyBitmask.test(BTN_TOUCH) && device->absBitmask.test(ABS_X) && in openDeviceLocked()
2414 } else if ((device->absBitmask.test(ABS_PRESSURE) || device->keyBitmask.test(BTN_TOUCH)) && in openDeviceLocked()
2896 if (device->keyBitmask.any(0, KEY_MAX + 1)) { in dump()