Lines Matching defs:test_bit
58 #define test_bit(bit, array) (array[bit/8] & (1<<(bit%8)))
297 if (device && !device->isVirtual() && test_bit(axis, device->absBitmask)) {
325 return test_bit(axis, device->relBitmask);
337 return test_bit(property, device->propBitmask);
348 if (device && !device->isVirtual() && test_bit(scanCode, device->keyBitmask)) {
352 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP;
372 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, keyState)) {
388 if (device && !device->isVirtual() && test_bit(sw, device->swBitmask)) {
392 return test_bit(sw, swState) ? AKEY_STATE_DOWN : AKEY_STATE_UP;
406 if (device && !device->isVirtual() && test_bit(axis, device->absBitmask)) {
437 if (test_bit(scanCodes[sc], device->keyBitmask)) {
502 if (test_bit(scanCode, device->keyBitmask)) {
513 if (test_bit(led, device->ledBitmask)) {
1120 if (test_bit(BTN_MOUSE, device->keyBitmask)
1121 && test_bit(REL_X, device->relBitmask)
1122 && test_bit(REL_Y, device->relBitmask)) {
1128 if (test_bit(ABS_MT_POSITION_X, device->absBitmask)
1129 && test_bit(ABS_MT_POSITION_Y, device->absBitmask)) {
1133 if (test_bit(BTN_TOUCH, device->keyBitmask) || !haveGamepadButtons) {
1137 } else if (test_bit(BTN_TOUCH, device->keyBitmask)
1138 && test_bit(ABS_X, device->absBitmask)
1139 && test_bit(ABS_Y, device->absBitmask)) {
1149 if (test_bit(i, device->absBitmask)
1159 if (test_bit(i, device->swBitmask)) {
1166 if (test_bit(FF_RUMBLE, device->ffBitmask)) {
1386 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, device->keyBitmask)) {