[gtk+/xi2-playground: 2/12] Make GdkDeviceManagerXI2 recognize touchscreen devices.



commit 85b3898e21aeeed94256b4d36660d39e49d1a050
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Jun 4 14:13:21 2010 +0200

    Make GdkDeviceManagerXI2 recognize touchscreen devices.

 gdk/x11/gdkdevicemanager-xi2.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c
index f9a9cd7..48d7c18 100644
--- a/gdk/x11/gdkdevicemanager-xi2.c
+++ b/gdk/x11/gdkdevicemanager-xi2.c
@@ -203,6 +203,9 @@ create_device (GdkDeviceManager *device_manager,
       else if (strstr (tmp_name, "wacom") ||
                strstr (tmp_name, "pen"))
         input_source = GDK_SOURCE_PEN;
+      else if (strstr (tmp_name, "touchscreen") ||
+               strstr (tmp_name, "touchpoint"))
+        input_source = GDK_SOURCE_TOUCH;
       else
         input_source = GDK_SOURCE_MOUSE;
 



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