diff options
Diffstat (limited to 'include/mtdev-caps.h')
| -rw-r--r-- | include/mtdev-caps.h | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/include/mtdev-caps.h b/include/mtdev-caps.h index 8f88404..4460eca 100644 --- a/include/mtdev-caps.h +++ b/include/mtdev-caps.h | |||
| @@ -23,25 +23,18 @@ | |||
| 23 | #define MTDEV_CAPS_H | 23 | #define MTDEV_CAPS_H |
| 24 | 24 | ||
| 25 | #include "common.h" | 25 | #include "common.h" |
| 26 | #include "abs2mt.h" | ||
| 27 | #include "mtbit.h" | ||
| 26 | 28 | ||
| 27 | struct Capabilities { | 29 | struct Capabilities { |
| 28 | struct input_id devid; | 30 | struct input_id devid; |
| 29 | char devname[32]; | 31 | char devname[32]; |
| 30 | int has_left, has_middle; | 32 | int has_left, has_middle, has_right; |
| 31 | int has_right, has_mtdata, has_ibt; | 33 | int has_mtdata, has_ibt; |
| 32 | int has_touch_major, has_touch_minor; | 34 | int has_slot, nullid; |
| 33 | int has_width_major, has_width_minor; | 35 | int has_abs[MT_ABS_SIZE]; |
| 34 | int has_orientation, has_dummy; | 36 | struct input_absinfo slot; |
| 35 | int has_position_x, has_position_y; | 37 | struct input_absinfo abs[MT_ABS_SIZE]; |
| 36 | struct input_absinfo abs_touch_major; | ||
| 37 | struct input_absinfo abs_touch_minor; | ||
| 38 | struct input_absinfo abs_width_major; | ||
| 39 | struct input_absinfo abs_width_minor; | ||
| 40 | struct input_absinfo abs_orientation; | ||
| 41 | struct input_absinfo abs_position_x; | ||
| 42 | struct input_absinfo abs_position_y; | ||
| 43 | int xfuzz, yfuzz, wfuzz; | ||
| 44 | int yclick; | ||
| 45 | }; | 38 | }; |
| 46 | 39 | ||
| 47 | int read_capabilities(struct Capabilities *cap, int fd); | 40 | int read_capabilities(struct Capabilities *cap, int fd); |
