summaryrefslogtreecommitdiff
path: root/test/grail-gesture.c
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-09-21 11:22:09 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-09-21 12:56:17 +0200
commit071ac522d04ce8bd099f4097627c4a526686df95 (patch)
tree228708548cc3ccb7e2a83259f438f392ad1c65ce /test/grail-gesture.c
parent07e097727f7bba8afc1abe29b1660a253ac64dad (diff)
Show all information for pass-through events
In grail-gesture, the timing information is missing. Remedied with this patch. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'test/grail-gesture.c')
-rw-r--r--test/grail-gesture.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/grail-gesture.c b/test/grail-gesture.c
index d2e0e7d..614bf1a 100644
--- a/test/grail-gesture.c
+++ b/test/grail-gesture.c
@@ -46,7 +46,9 @@ static int tp_get_clients(struct grail *ge,
46 46
47static void tp_event(struct grail *ge, const struct input_event *ev) 47static void tp_event(struct grail *ge, const struct input_event *ev)
48{ 48{
49 fprintf(stderr, "event %d 0x%x %d\n", ev->type, ev->code, ev->value); 49 fprintf(stderr, "%lu.%06u %04x %04x %d\n",
50 ev->time.tv_sec, (unsigned)ev->time.tv_usec,
51 ev->type, ev->code, ev->value);
50} 52}
51 53
52static void tp_gesture(struct grail *ge, const struct grail_event *ev) 54static void tp_gesture(struct grail *ge, const struct grail_event *ev)