From ac6ce79aa389982c3e7113f6192f492a6e21b4b1 Mon Sep 17 00:00:00 2001 From: Stefano Facchini Date: Sat, 10 Mar 2012 16:39:16 +0100 Subject: [PATCH] gdk: add new device types (GDK_SOURCE_TOUCHSCREEN, GDK_SOURCE_TOUCHPAD) https://bugzilla.gnome.org/show_bug.cgi?id=671779 --- clutter/gdk/clutter-input-device-gdk.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clutter/gdk/clutter-input-device-gdk.c b/clutter/gdk/clutter-input-device-gdk.c index 44150ff5c..9bbd534e6 100644 --- a/clutter/gdk/clutter-input-device-gdk.c +++ b/clutter/gdk/clutter-input-device-gdk.c @@ -138,6 +138,12 @@ _clutter_input_device_gdk_new (ClutterDeviceManager *manager, case GDK_SOURCE_KEYBOARD: device_type = CLUTTER_KEYBOARD_DEVICE; break; + case GDK_SOURCE_TOUCHSCREEN: + device_type = CLUTTER_TOUCHSCREEN_DEVICE; + break; + case GDK_SOURCE_TOUCHPAD: + device_type = CLUTTER_TOUCHPAD_DEVICE; + break; } if (device_type != CLUTTER_KEYBOARD_DEVICE)