diff options
Diffstat (limited to 'src/hwdata.h')
| -rw-r--r-- | src/hwdata.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/hwdata.h b/src/hwdata.h index b9316db..239e022 100644 --- a/src/hwdata.h +++ b/src/hwdata.h | |||
| @@ -4,6 +4,11 @@ | |||
| 4 | #include "common.h" | 4 | #include "common.h" |
| 5 | 5 | ||
| 6 | #define DIM_FINGER 16 | 6 | #define DIM_FINGER 16 |
| 7 | #define DIM_BUTTON 3 | ||
| 8 | |||
| 9 | #define MT_BUTTON_LEFT 0 | ||
| 10 | #define MT_BUTTON_MIDDLE 1 | ||
| 11 | #define MT_BUTTON_RIGHT 2 | ||
| 7 | 12 | ||
| 8 | //////////////////////////////////////////////////////// | 13 | //////////////////////////////////////////////////////// |
| 9 | 14 | ||
| @@ -18,8 +23,7 @@ struct FingerData { | |||
| 18 | 23 | ||
| 19 | struct HWData { | 24 | struct HWData { |
| 20 | struct FingerData finger[DIM_FINGER]; | 25 | struct FingerData finger[DIM_FINGER]; |
| 21 | int nfinger; | 26 | int nfinger, button[DIM_BUTTON]; |
| 22 | bool left, middle, right; | ||
| 23 | }; | 27 | }; |
| 24 | 28 | ||
| 25 | //////////////////////////////////////////////////////// | 29 | //////////////////////////////////////////////////////// |
