Lines Matching refs:test_bit
57 #define test_bit(bit, array) (array[bit/8] & (1<<(bit%8)))
246 if (device && test_bit(axis, device->absBitmask)) {
274 return test_bit(axis, device->relBitmask);
286 return test_bit(property, device->propBitmask);
297 if (device && test_bit(scanCode, device->keyBitmask)) {
301 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP;
321 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, keyState)) {
337 if (device && test_bit(sw, device->swBitmask)) {
341 return test_bit(sw, swState) ? AKEY_STATE_DOWN : AKEY_STATE_UP;
355 if (device && test_bit(axis, device->absBitmask)) {
386 if (test_bit(scanCodes[sc], device->keyBitmask)) {
463 if (test_bit(scanCode, device->keyBitmask)) {
474 if (test_bit(led, device->ledBitmask)) {
951 if (test_bit(BTN_MOUSE, device->keyBitmask)
952 && test_bit(REL_X, device->relBitmask)
953 && test_bit(REL_Y, device->relBitmask)) {
959 if (test_bit(ABS_MT_POSITION_X, device->absBitmask)
960 && test_bit(ABS_MT_POSITION_Y, device->absBitmask)) {
964 if (test_bit(BTN_TOUCH, device->keyBitmask) || !haveGamepadButtons) {
968 } else if (test_bit(BTN_TOUCH, device->keyBitmask)
969 && test_bit(ABS_X, device->absBitmask)
970 && test_bit(ABS_Y, device->absBitmask)) {
980 if (test_bit(i, device->absBitmask)
990 if (test_bit(i, device->swBitmask)) {
1154 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, device->keyBitmask)) {