summaryrefslogtreecommitdiff
path: root/src/hwdata.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-03-21 14:54:15 +0100
committerHenrik Rydberg <rydberg@euromail.se>2010-03-21 14:59:09 +0100
commit0587ab0488c46b61d175793f2deedc3a7aa9b600 (patch)
tree6077295316cc1420a4cd5010a3772c460c759b75 /src/hwdata.h
parentc7ed4cec501f10479a98e380d760670312101136 (diff)
Add millisecond event times
Expand the (x, y) notion of the current hardware events to the more useful (x, y, t) notion. This patch was inspired by a gesture patch from Arturo Castro <arturo@openframeworks.cc>. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/hwdata.h')
-rw-r--r--src/hwdata.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hwdata.h b/src/hwdata.h
index aa589e0..c00fb39 100644
--- a/src/hwdata.h
+++ b/src/hwdata.h
@@ -51,6 +51,9 @@ struct FingerData {
51 int position_x, position_y; 51 int position_x, position_y;
52}; 52};
53 53
54/* year-proof millisecond event time */
55typedef __u64 mstime_t;
56
54/** 57/**
55 * struct HWData - hardware reads 58 * struct HWData - hardware reads
56 * 59 *
@@ -67,6 +70,7 @@ struct HWData {
67 unsigned mask[DIM_FINGER], mread[DIM_FINGER]; 70 unsigned mask[DIM_FINGER], mread[DIM_FINGER];
68 unsigned button; 71 unsigned button;
69 int nfinger, nread; 72 int nfinger, nread;
73 mstime_t evtime;
70}; 74};
71 75
72void init_hwdata(struct HWData *hw); 76void init_hwdata(struct HWData *hw);