From 071ac522d04ce8bd099f4097627c4a526686df95 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Tue, 21 Sep 2010 11:22:09 +0200 Subject: Show all information for pass-through events In grail-gesture, the timing information is missing. Remedied with this patch. Signed-off-by: Henrik Rydberg --- test/grail-gesture.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/grail-gesture.c') 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, static void tp_event(struct grail *ge, const struct input_event *ev) { - fprintf(stderr, "event %d 0x%x %d\n", ev->type, ev->code, ev->value); + fprintf(stderr, "%lu.%06u %04x %04x %d\n", + ev->time.tv_sec, (unsigned)ev->time.tv_usec, + ev->type, ev->code, ev->value); } static void tp_gesture(struct grail *ge, const struct grail_event *ev) -- cgit v1.2.3