[gtk+/touch-for-3.4-2: 3/44] gdk: Add device types for touch-capable devices
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/touch-for-3.4-2: 3/44] gdk: Add device types for touch-capable devices
- Date: Thu, 1 Mar 2012 20:26:26 +0000 (UTC)
commit f6c2d05cfea2018d8c46faea91bec5b660040fae
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Feb 29 21:58:36 2012 -0500
gdk: Add device types for touch-capable devices
We introduce GDK_SOURCE_TOUCHSCREEN and GDK_SOURCE_TOUCHPAD
for direct and indirect touch devices, respecively. These
correspond to XIDirectTouch and XIDependentTouch in XI2.
gdk/gdkdevice.h | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkdevice.h b/gdk/gdkdevice.h
index e08c7aa..ffbdbf2 100644
--- a/gdk/gdkdevice.h
+++ b/gdk/gdkdevice.h
@@ -59,6 +59,10 @@ typedef enum
* of a stylus on a graphics tablet.
* @GDK_SOURCE_CURSOR: the device is a graphics tablet "puck" or similar device.
* @GDK_SOURCE_KEYBOARD: the device is a keyboard.
+ * @GDK_SOURCE_TOUCHSCREEN: the device is a direct-input touch device, such
+ * as a touchscreen or tablet. This device type has been added in 3.4.
+ * @GDK_SOURCE_TOUCHPAD: the device is an indirect touch device, such
+ * as a touchpad. This device type has been added in 3.4.
*
* An enumeration describing the type of an input device in general terms.
*/
@@ -68,7 +72,9 @@ typedef enum
GDK_SOURCE_PEN,
GDK_SOURCE_ERASER,
GDK_SOURCE_CURSOR,
- GDK_SOURCE_KEYBOARD
+ GDK_SOURCE_KEYBOARD,
+ GDK_SOURCE_TOUCHSCREEN,
+ GDK_SOURCE_TOUCHPAD
} GdkInputSource;
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]