aboutsummaryrefslogtreecommitdiffstats
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 @@
#define MT_BUTTON_MIDDLE 1
#define MT_BUTTON_RIGHT 2
+typedef unsigned int button_t;
+
////////////////////////////////////////////////////////
struct FingerData {
@@ -22,7 +24,8 @@ struct FingerData {
struct HWData {
struct FingerData finger[DIM_FINGER];
- int nfinger, button[DIM_BUTTON];
+ button_t button;
+ int nfinger;
};
////////////////////////////////////////////////////////