Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

gdk: add new device types (GDK_SOURCE_TOUCHSCREEN, GDK_SOURCE_TOUCHPAD)

  • Loading branch information...
commit ac6ce79aa389982c3e7113f6192f492a6e21b4b1 1 parent 440c47e
@stfacc stfacc authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 clutter/gdk/clutter-input-device-gdk.c
View
6 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)
Please sign in to comment.
Something went wrong with that request. Please try again.