Commit 5b1d5d82 authored by Emmanuele Bassi's avatar Emmanuele Bassi

gdk: Handle all GDK device types

We cannot add new device types in Clutter, but we should handle all
device types that GDK throws at us.
parent 278513d6
......@@ -151,6 +151,12 @@ _clutter_input_device_gdk_new (ClutterDeviceManager *manager,
case GDK_SOURCE_TOUCHPAD:
device_type = CLUTTER_TOUCHPAD_DEVICE;
break;
case GDK_SOURCE_TRACKPOINT:
device_type = CLUTTER_POINTER_DEVICE;
break;
case GDK_SOURCE_TABLET_PAD:
device_type = CLUTTER_CURSOR_DEVICE;
break;
}
if (device_type != CLUTTER_KEYBOARD_DEVICE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment