tests: Print touch sequences in test-events

https://bugzilla.gnome.org/show_bug.cgi?id=685186
This commit is contained in:
Emanuele Aina 2012-11-20 18:15:29 +01:00
parent ad288c8061
commit 7007273405

View File

@ -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;