From 7007273405230473c49d24e207e7d19563784585 Mon Sep 17 00:00:00 2001 From: Emanuele Aina Date: Tue, 20 Nov 2012 18:15:29 +0100 Subject: [PATCH] tests: Print touch sequences in test-events https://bugzilla.gnome.org/show_bug.cgi?id=685186 --- tests/interactive/test-events.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/interactive/test-events.c b/tests/interactive/test-events.c index 3eef6f5db..09c45f108 100644 --- a/tests/interactive/test-events.c +++ b/tests/interactive/test-events.c @@ -308,22 +308,25 @@ input_cb (ClutterActor *actor, break; case CLUTTER_TOUCH_BEGIN: clutter_event_get_position (event, &position); - g_print ("[%s] TOUCH BEGIN (coords:%.02f,%.02f device:%d/%d state:%s)", + g_print ("[%s] TOUCH BEGIN (seq:%p coords:%.02f,%.02f device:%d/%d state:%s)", clutter_actor_get_name (source_actor), + clutter_event_get_event_sequence (event), position.x, position.y, device_id, source_device_id, state); break; case CLUTTER_TOUCH_UPDATE: clutter_event_get_position (event, &position); - g_print ("[%s] TOUCH UPDATE (coords:%.02f,%.02f device:%d/%d state:%s)", + g_print ("[%s] TOUCH UPDATE (seq:%p coords:%.02f,%.02f device:%d/%d state:%s)", clutter_actor_get_name (source_actor), + clutter_event_get_event_sequence (event), position.x, position.y, device_id, source_device_id, state); break; case CLUTTER_TOUCH_END: clutter_event_get_position (event, &position); - g_print ("[%s] TOUCH END (coords:%.02f,%.02f device:%d/%d state:%s)", + g_print ("[%s] TOUCH END (seq:%p coords:%.02f,%.02f device:%d/%d state:%s)", clutter_actor_get_name (source_actor), + clutter_event_get_event_sequence (event), position.x, position.y, device_id, source_device_id, state); break;