[clutter/wip/evdev-tablet-support: 7/17] evdev: Map LIBINPUT_DEVICE_CAP_TABLET to CLUTTER_TABLET_DEVICE



commit 4c4e4c29cb850cd131e4b3870dbec8f7a1f20142
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Jan 9 17:11:51 2015 +0100

    evdev: Map LIBINPUT_DEVICE_CAP_TABLET to CLUTTER_TABLET_DEVICE
    
    This is so tablet devices have the correct ClutterInputDeviceType

 clutter/evdev/clutter-input-device-evdev.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/clutter/evdev/clutter-input-device-evdev.c b/clutter/evdev/clutter-input-device-evdev.c
index 6e9c925..c41b524 100644
--- a/clutter/evdev/clutter-input-device-evdev.c
+++ b/clutter/evdev/clutter-input-device-evdev.c
@@ -203,6 +203,8 @@ _clutter_input_device_evdev_determine_type (struct libinput_device *ldev)
    */
   if (libinput_device_config_tap_get_finger_count (ldev) > 0)
     return CLUTTER_TOUCHPAD_DEVICE;
+  else if (libinput_device_has_capability (ldev, LIBINPUT_DEVICE_CAP_TABLET_TOOL))
+    return CLUTTER_TABLET_DEVICE;
   else if (libinput_device_has_capability (ldev, LIBINPUT_DEVICE_CAP_POINTER))
     return CLUTTER_POINTER_DEVICE;
   else if (libinput_device_has_capability (ldev, LIBINPUT_DEVICE_CAP_TOUCH))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]