Lines Matching defs:test_bit
58 #define test_bit(bit, array) (array[bit/8] & (1<<(bit%8)))
282 if (device && !device->isVirtual() && test_bit(axis, device->absBitmask)) {
310 return test_bit(axis, device->relBitmask);
322 return test_bit(property, device->propBitmask);
333 if (device && !device->isVirtual() && test_bit(scanCode, device->keyBitmask)) {
337 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP;
357 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, keyState)) {
373 if (device && !device->isVirtual() && test_bit(sw, device->swBitmask)) {
377 return test_bit(sw, swState) ? AKEY_STATE_DOWN : AKEY_STATE_UP;
391 if (device && !device->isVirtual() && test_bit(axis, device->absBitmask)) {
422 if (test_bit(scanCodes[sc], device->keyBitmask)) {
487 if (test_bit(scanCode, device->keyBitmask)) {
499 if (test_bit(sc, device->ledBitmask)) {
1171 if (test_bit(BTN_MOUSE, device->keyBitmask)
1172 && test_bit(REL_X, device->relBitmask)
1173 && test_bit(REL_Y, device->relBitmask)) {
1179 if (test_bit(ABS_MT_POSITION_X, device->absBitmask)
1180 && test_bit(ABS_MT_POSITION_Y, device->absBitmask)) {
1184 if (test_bit(BTN_TOUCH, device->keyBitmask) || !haveGamepadButtons) {
1188 } else if (test_bit(BTN_TOUCH, device->keyBitmask)
1189 && test_bit(ABS_X, device->absBitmask)
1190 && test_bit(ABS_Y, device->absBitmask)) {
1200 if (test_bit(i, device->absBitmask)
1210 if (test_bit(i, device->swBitmask)) {
1217 if (test_bit(FF_RUMBLE, device->ffBitmask)) {
1455 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, device->keyBitmask)) {
1470 if(scanCode >= 0 && scanCode <= LED_MAX && test_bit(scanCode, device->ledBitmask)) {