gdk: add new device types (GDK_SOURCE_TOUCHSCREEN, GDK_SOURCE_TOUCHPAD)

https://bugzilla.gnome.org/show_bug.cgi?id=671779
This commit is contained in:
Stefano Facchini 2012-03-10 16:39:16 +01:00
parent 440c47e941
commit ac6ce79aa3

View File

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