aboutsummaryrefslogtreecommitdiffstats
path: root/src/hwdata.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/hwdata.h')
-rw-r--r--src/hwdata.h7
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 @@
#include "common.h"
-#define DIM_EVENTS 64
#define DIM_FINGER 16
////////////////////////////////////////////////////////
@@ -18,15 +17,15 @@ struct FingerData {
////////////////////////////////////////////////////////
struct HWData {
- struct input_event event[DIM_EVENTS];
struct FingerData finger[DIM_FINGER];
- int at, nev, nfinger;
+ int nfinger;
bool left, middle, right;
};
////////////////////////////////////////////////////////
-int read_hwdata(struct HWData *hw, int fd);
+void init_hwdata(struct HWData *hw);
+bool read_hwdata(struct HWData *hw, const struct input_event* ev);
void output_hwdata(const struct HWData *hw);
////////////////////////////////////////////////////////