Lines Matching refs:abs
355 bool CheckAccel(const BitVector &ev, const BitVector &abs, const BitVector &prop)
358 bool has3dCoordinates = abs.CheckBit(ABS_X) && abs.CheckBit(ABS_Y) && abs.CheckBit(ABS_Z);
371 bool HasJoystickAxesOrButtons(const BitVector &abs, const BitVector &key)
388 hasJoystickAxesOrButtons = abs.CheckBit(axis);
425 bool CheckMtCoordinates(const BitVector &abs)
427 bool hasMtCoordinates = abs.CheckBit(ABS_MT_POSITION_X) && abs.CheckBit(ABS_MT_POSITION_Y);
428 /* unset hasMtCoordinates if devices claims to have all abs axis */
429 if (hasMtCoordinates && abs.CheckBit(ABS_MT_SLOT) && abs.CheckBit(ABS_MT_SLOT - 1)) {
445 bool CheckPointers(const BitVector &ev, const BitVector &abs, const BitVector &key, const BitVector &rel,
449 bool hasAbsCoordinates = abs.CheckBit(ABS_X) && abs.CheckBit(ABS_Y);
451 bool hasMtCoordinates = CheckMtCoordinates(abs);
460 bool probablyJoystick = HasJoystickAxesOrButtons(abs, key);
550 BitVector abs{ GetProperty("ABS") };
555 bool isPointer = CheckAccel(ev, abs, prop) || CheckPointers(ev, abs, key, rel, prop);