diff options
Diffstat (limited to 'src/capabilities.h')
| -rw-r--r-- | src/capabilities.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/capabilities.h b/src/capabilities.h new file mode 100644 index 0000000..f09a34e --- /dev/null +++ b/src/capabilities.h | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | #ifndef CAPABILITIES_H | ||
| 2 | #define CAPABILITIES_H | ||
| 3 | |||
| 4 | #include "common.h" | ||
| 5 | #include <linux/input.h> | ||
| 6 | |||
| 7 | //////////////////////////////////////////////////////// | ||
| 8 | |||
| 9 | struct Capabilities { | ||
| 10 | bool has_left, has_middle; | ||
| 11 | bool has_right, has_mtdata; | ||
| 12 | bool has_touch_major, has_touch_minor; | ||
| 13 | bool has_width_major, has_width_minor; | ||
| 14 | bool has_orientation, has_dummy; | ||
| 15 | bool has_position_x, has_position_y; | ||
| 16 | struct input_absinfo abs_touch_major; | ||
| 17 | struct input_absinfo abs_touch_minor; | ||
| 18 | struct input_absinfo abs_width_major; | ||
| 19 | struct input_absinfo abs_width_minor; | ||
| 20 | struct input_absinfo abs_orientation; | ||
| 21 | struct input_absinfo abs_position_x; | ||
| 22 | struct input_absinfo abs_position_y; | ||
| 23 | }; | ||
| 24 | |||
| 25 | //////////////////////////////////////////////////////// | ||
| 26 | |||
| 27 | #endif | ||
