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/state.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/state.c') diff --git a/src/state.c b/src/state.c index 31eca70..182a508 100644 --- a/src/state.c +++ b/src/state.c @@ -105,6 +105,7 @@ void modify_state(struct State *s, s->button = hw->button; s->nfinger = hw->nfinger; + s->evtime = hw->evtime; /* sort fingers in touching order */ qsort(s->finger, s->nfinger, sizeof(struct FingerState), fincmp); @@ -141,6 +142,8 @@ void output_state(const struct State *s) GETBIT(s->button, MT_BUTTON_RIGHT)); xf86Msg(X_INFO, "fingers: %d\n", s->nfinger); + xf86Msg(X_INFO, "evtime: %lld\n", + s->evtime); for (i = 0; i < s->nfinger; i++) { xf86Msg(X_INFO, " %+02d %+05d:%+05d +%05d:%+05d " -- cgit v1.2.3