From 0587ab0488c46b61d175793f2deedc3a7aa9b600 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Sun, 21 Mar 2010 14:54:15 +0100 Subject: 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 . Signed-off-by: Henrik Rydberg --- src/hwdata.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/hwdata.h') 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 { int position_x, position_y; }; +/* year-proof millisecond event time */ +typedef __u64 mstime_t; + /** * struct HWData - hardware reads * @@ -67,6 +70,7 @@ struct HWData { unsigned mask[DIM_FINGER], mread[DIM_FINGER]; unsigned button; int nfinger, nread; + mstime_t evtime; }; void init_hwdata(struct HWData *hw); -- cgit v1.2.3