summaryrefslogtreecommitdiff
path: root/src/hwdata.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/hwdata.h')
-rw-r--r--src/hwdata.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/hwdata.h b/src/hwdata.h
index 59cff0d..f91f11b 100644
--- a/src/hwdata.h
+++ b/src/hwdata.h
@@ -9,6 +9,8 @@
9#define MT_BUTTON_MIDDLE 1 9#define MT_BUTTON_MIDDLE 1
10#define MT_BUTTON_RIGHT 2 10#define MT_BUTTON_RIGHT 2
11 11
12typedef unsigned int button_t;
13
12//////////////////////////////////////////////////////// 14////////////////////////////////////////////////////////
13 15
14struct FingerData { 16struct FingerData {
@@ -22,7 +24,8 @@ struct FingerData {
22 24
23struct HWData { 25struct HWData {
24 struct FingerData finger[DIM_FINGER]; 26 struct FingerData finger[DIM_FINGER];
25 int nfinger, button[DIM_BUTTON]; 27 button_t button;
28 int nfinger;
26}; 29};
27 30
28//////////////////////////////////////////////////////// 31////////////////////////////////////////////////////////