summaryrefslogtreecommitdiff
path: root/src/hwdata.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2008-11-06 14:03:42 +0100
committerHenrik Rydberg <rydberg@euromail.se>2008-11-06 14:03:42 +0100
commita773c79d6d767ddfe574ad513ab0276bdd13a717 (patch)
tree8d879fe396dab810bf5632c9777c3931c08eb396 /src/hwdata.h
parent030a3c8a38a81ea882fa0a3b0bfce61ded50a20d (diff)
Driver stages in place - should one support multiple
device instances by moving the private alloc to init/close? Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/hwdata.h')
-rw-r--r--src/hwdata.h34
1 files changed, 34 insertions, 0 deletions
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 @@
1#ifndef HWDATA_H
2#define HWDATA_H
3
4#include "common.h"
5
6#define DIM_EVENTS 64
7#define DIM_FINGER 16
8
9////////////////////////////////////////////////////////
10
11struct FingerData {
12 int touch_major, touch_minor;
13 int width_major, width_minor;
14 int orientation;
15 int position_x, position_y;
16};
17
18////////////////////////////////////////////////////////
19
20struct HWData {
21 struct input_event event[DIM_EVENTS];
22 struct FingerData finger[DIM_FINGER];
23 int at, nev, nfinger;
24 bool left, middle, right;
25};
26
27////////////////////////////////////////////////////////
28
29int read_hwdata(struct HWData *hw, int fd);
30void output_hwdata(const struct HWData *hw);
31
32////////////////////////////////////////////////////////
33
34#endif