diff options
author | Emanuele Aina <emanuele.aina@collabora.com> | 2012-11-20 18:15:29 +0100 |
---|---|---|
committer | Emanuele Aina <emanuele.aina@collabora.com> | 2012-11-26 13:29:36 +0100 |
commit | 7007273405230473c49d24e207e7d19563784585 (patch) | |
tree | d54620d2e77d496d63629830ca4737b586722137 /tests | |
parent | ad288c80616ad1b643ddf5f7a9c599462338f2c4 (diff) | |
download | clutter-7007273405230473c49d24e207e7d19563784585.tar.gz |
tests: Print touch sequences in test-events
https://bugzilla.gnome.org/show_bug.cgi?id=685186
Diffstat (limited to 'tests')
-rw-r--r-- | tests/interactive/test-events.c | 9 |
1 files 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; |