summaryrefslogtreecommitdiff
path: root/src/hwdata.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/hwdata.h')
-rw-r--r--src/hwdata.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/hwdata.h b/src/hwdata.h
index d552b1b..9b46073 100644
--- a/src/hwdata.h
+++ b/src/hwdata.h
@@ -34,10 +34,6 @@
34#define MT_BUTTON_HWHEEL_LEFT 5 34#define MT_BUTTON_HWHEEL_LEFT 5
35#define MT_BUTTON_HWHEEL_RIGHT 6 35#define MT_BUTTON_HWHEEL_RIGHT 6
36 36
37typedef unsigned int button_t;
38
39////////////////////////////////////////////////////////
40
41struct FingerData { 37struct FingerData {
42 int touch_major, touch_minor; 38 int touch_major, touch_minor;
43 int width_major, width_minor; 39 int width_major, width_minor;
@@ -45,20 +41,14 @@ struct FingerData {
45 int position_x, position_y; 41 int position_x, position_y;
46}; 42};
47 43
48////////////////////////////////////////////////////////
49
50struct HWData { 44struct HWData {
51 struct FingerData finger[DIM_FINGER]; 45 struct FingerData finger[DIM_FINGER];
52 button_t button; 46 unsigned button;
53 int nfinger, nread; 47 int nfinger, nread;
54}; 48};
55 49
56////////////////////////////////////////////////////////
57
58void init_hwdata(struct HWData *hw); 50void init_hwdata(struct HWData *hw);
59bool read_hwdata(struct HWData *hw, const struct input_event* ev); 51int read_hwdata(struct HWData *hw, const struct input_event* ev);
60void output_hwdata(const struct HWData *hw); 52void output_hwdata(const struct HWData *hw);
61 53
62////////////////////////////////////////////////////////
63
64#endif 54#endif