summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuele Aina <emanuele.aina@collabora.com>2012-11-20 17:15:29 (GMT)
committerEmanuele Aina <emanuele.aina@collabora.com>2012-11-26 12:29:36 (GMT)
commit7007273405230473c49d24e207e7d19563784585 (patch)
treed54620d2e77d496d63629830ca4737b586722137
parentad288c80616ad1b643ddf5f7a9c599462338f2c4 (diff)
downloadclutter-7007273405230473c49d24e207e7d19563784585.tar.gz
clutter-7007273405230473c49d24e207e7d19563784585.tar.xz
tests: Print touch sequences in test-events
https://bugzilla.gnome.org/show_bug.cgi?id=685186
-rw-r--r--tests/interactive/test-events.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/interactive/test-events.c b/tests/interactive/test-events.c
index 3eef6f5..09c45f1 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;