Permalink
Browse files

gdk: add new device types (GDK_SOURCE_TOUCHSCREEN, GDK_SOURCE_TOUCHPAD)

  • Loading branch information...
1 parent 440c47e commit ac6ce79aa389982c3e7113f6192f492a6e21b4b1 @stfacc stfacc committed Mar 10, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 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)

0 comments on commit ac6ce79

Please sign in to comment.