Lines Matching +full:x +full:- +full:axis
1 /* SPDX-License-Identifier: GPL-2.0-only */
18 #define INPUT_MT_TRACK 0x0008 /* use in-kernel tracking */
19 #define INPUT_MT_SEMI_MT 0x0010 /* semi-mt device, finger count handled manually */
22 * struct input_mt_slot - represents the state of an input MT slot
28 int abs[ABS_MT_LAST - ABS_MT_FIRST + 1];
34 * struct input_mt - state of tracked contacts
40 * @red: reduced cost matrix for in-kernel tracking
56 slot->abs[code - ABS_MT_FIRST] = value; in input_mt_set_value()
62 return slot->abs[code - ABS_MT_FIRST]; in input_mt_get_value()
73 return slot->frame == mt->frame; in input_mt_is_used()
82 return mt->trkid++ & TRKID_MAX; in input_mt_new_trkid()
90 static inline bool input_is_mt_value(int axis) in input_is_mt_value() argument
92 return axis >= ABS_MT_FIRST && axis <= ABS_MT_LAST; in input_is_mt_value()
95 static inline bool input_is_mt_axis(int axis) in input_is_mt_axis() argument
97 return axis == ABS_MT_SLOT || input_is_mt_value(axis); in input_is_mt_axis()
115 * struct input_mt_pos - contact position
116 * @x: horizontal coordinate
120 s16 x, y; member