From a773c79d6d767ddfe574ad513ab0276bdd13a717 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Thu, 6 Nov 2008 14:03:42 +0100 Subject: Driver stages in place - should one support multiple device instances by moving the private alloc to init/close? Signed-off-by: Henrik Rydberg --- src/hwdata.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/hwdata.h (limited to 'src/hwdata.h') diff --git a/src/hwdata.h b/src/hwdata.h new file mode 100644 index 0000000..beb98b0 --- /dev/null +++ b/src/hwdata.h @@ -0,0 +1,34 @@ +#ifndef HWDATA_H +#define HWDATA_H + +#include "common.h" + +#define DIM_EVENTS 64 +#define DIM_FINGER 16 + +//////////////////////////////////////////////////////// + +struct FingerData { + int touch_major, touch_minor; + int width_major, width_minor; + int orientation; + int position_x, position_y; +}; + +//////////////////////////////////////////////////////// + +struct HWData { + struct input_event event[DIM_EVENTS]; + struct FingerData finger[DIM_FINGER]; + int at, nev, nfinger; + bool left, middle, right; +}; + +//////////////////////////////////////////////////////// + +int read_hwdata(struct HWData *hw, int fd); +void output_hwdata(const struct HWData *hw); + +//////////////////////////////////////////////////////// + +#endif -- cgit v1.2.3