From 426d7f3bdf37ea8f2ebc5f62159de6c257357ed6 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Thu, 8 Nov 2018 15:15:49 -0200 Subject: [PATCH] tests: Enumerate all possible events --- clutter/tests/interactive/test-events.c | 25 +++++++++++++++++ clutter/tests/interactive/test-grab.c | 37 +++++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/clutter/tests/interactive/test-events.c b/clutter/tests/interactive/test-events.c index 09424de45..a41dd8fce 100644 --- a/clutter/tests/interactive/test-events.c +++ b/clutter/tests/interactive/test-events.c @@ -371,7 +371,32 @@ input_cb (ClutterActor *actor, case CLUTTER_DELETE: g_print ("[%s] DELETE", clutter_actor_get_name (source_actor)); break; + case CLUTTER_TOUCHPAD_PINCH: + g_print ("[%s] TOUCHPAD PINCH", clutter_actor_get_name (source_actor)); + break; + case CLUTTER_TOUCHPAD_SWIPE: + g_print ("[%s] TOUCHPAD SWIPE", clutter_actor_get_name (source_actor)); + break; + case CLUTTER_PROXIMITY_IN: + g_print ("[%s] PROXIMITY IN", clutter_actor_get_name (source_actor)); + break; + case CLUTTER_PROXIMITY_OUT: + g_print ("[%s] PROXIMITY OUT", clutter_actor_get_name (source_actor)); + break; + case CLUTTER_PAD_BUTTON_PRESS: + g_print ("[%s] PAD BUTTON PRESS", clutter_actor_get_name (source_actor)); + break; + case CLUTTER_PAD_BUTTON_RELEASE: + g_print ("[%s] PAD BUTTON RELEASE", clutter_actor_get_name (source_actor)); + break; + case CLUTTER_PAD_STRIP: + g_print ("[%s] PAD STRIP", clutter_actor_get_name (source_actor)); + break; + case CLUTTER_PAD_RING: + g_print ("[%s] PAD RING", clutter_actor_get_name (source_actor)); + break; case CLUTTER_NOTHING: + default: return FALSE; } diff --git a/clutter/tests/interactive/test-grab.c b/clutter/tests/interactive/test-grab.c index 931d0c464..8d9116b5f 100644 --- a/clutter/tests/interactive/test-grab.c +++ b/clutter/tests/interactive/test-grab.c @@ -63,7 +63,44 @@ debug_event_cb (ClutterActor *actor, case CLUTTER_DELETE: printf("[%s] DELETE", source); break; + case CLUTTER_TOUCH_BEGIN: + g_print ("[%s] TOUCH BEGIN", source); + break; + case CLUTTER_TOUCH_UPDATE: + g_print ("[%s] TOUCH UPDATE", source); + break; + case CLUTTER_TOUCH_END: + g_print ("[%s] TOUCH END", source); + break; + case CLUTTER_TOUCH_CANCEL: + g_print ("[%s] TOUCH CANCEL", source); + break; + case CLUTTER_TOUCHPAD_PINCH: + g_print ("[%s] TOUCHPAD PINCH", source); + break; + case CLUTTER_TOUCHPAD_SWIPE: + g_print ("[%s] TOUCHPAD SWIPE", source); + break; + case CLUTTER_PROXIMITY_IN: + g_print ("[%s] PROXIMITY IN", source); + break; + case CLUTTER_PROXIMITY_OUT: + g_print ("[%s] PROXIMITY OUT", source); + break; + case CLUTTER_PAD_BUTTON_PRESS: + g_print ("[%s] PAD BUTTON PRESS", source); + break; + case CLUTTER_PAD_BUTTON_RELEASE: + g_print ("[%s] PAD BUTTON RELEASE", source); + break; + case CLUTTER_PAD_STRIP: + g_print ("[%s] PAD STRIP", source); + break; + case CLUTTER_PAD_RING: + g_print ("[%s] PAD RING", source); + break; case CLUTTER_NOTHING: + default: return FALSE; }