diff options
Diffstat (limited to 'src/hwdata.h')
| -rw-r--r-- | src/hwdata.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/hwdata.h b/src/hwdata.h index beb98b0..b9316db 100644 --- a/src/hwdata.h +++ b/src/hwdata.h | |||
| @@ -3,7 +3,6 @@ | |||
| 3 | 3 | ||
| 4 | #include "common.h" | 4 | #include "common.h" |
| 5 | 5 | ||
| 6 | #define DIM_EVENTS 64 | ||
| 7 | #define DIM_FINGER 16 | 6 | #define DIM_FINGER 16 |
| 8 | 7 | ||
| 9 | //////////////////////////////////////////////////////// | 8 | //////////////////////////////////////////////////////// |
| @@ -18,15 +17,15 @@ struct FingerData { | |||
| 18 | //////////////////////////////////////////////////////// | 17 | //////////////////////////////////////////////////////// |
| 19 | 18 | ||
| 20 | struct HWData { | 19 | struct HWData { |
| 21 | struct input_event event[DIM_EVENTS]; | ||
| 22 | struct FingerData finger[DIM_FINGER]; | 20 | struct FingerData finger[DIM_FINGER]; |
| 23 | int at, nev, nfinger; | 21 | int nfinger; |
| 24 | bool left, middle, right; | 22 | bool left, middle, right; |
| 25 | }; | 23 | }; |
| 26 | 24 | ||
| 27 | //////////////////////////////////////////////////////// | 25 | //////////////////////////////////////////////////////// |
| 28 | 26 | ||
| 29 | int read_hwdata(struct HWData *hw, int fd); | 27 | void init_hwdata(struct HWData *hw); |
| 28 | bool read_hwdata(struct HWData *hw, const struct input_event* ev); | ||
| 30 | void output_hwdata(const struct HWData *hw); | 29 | void output_hwdata(const struct HWData *hw); |
| 31 | 30 | ||
| 32 | //////////////////////////////////////////////////////// | 31 | //////////////////////////////////////////////////////// |
