[gtk+/xi2: 1149/1239] GdkDeviceXI2: Implement get_state(), sort of.
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/xi2: 1149/1239] GdkDeviceXI2: Implement get_state(), sort of.
- Date: Tue, 29 Sep 2009 10:56:49 +0000 (UTC)
commit f7db1aa9034b37301e81215f02ea42f18f7c303e
Author: Carlos Garnacho <carlos gnome org>
Date: Tue Sep 15 15:58:55 2009 +0200
GdkDeviceXI2: Implement get_state(), sort of.
Axes are not being returned, there doesn't seem to be any
XI2 function to query valuators state.
gdk/x11/gdkdevice-xi2.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkdevice-xi2.c b/gdk/x11/gdkdevice-xi2.c
index 1612935..8565406 100644
--- a/gdk/x11/gdkdevice-xi2.c
+++ b/gdk/x11/gdkdevice-xi2.c
@@ -170,7 +170,14 @@ gdk_device_xi2_get_state (GdkDevice *device,
gdouble *axes,
GdkModifierType *mask)
{
- /* FIXME: Implement */
+ /* FIXME: Axes are not being translated, there doesn't
+ * seem to be any function to get valuators state in XI2.
+ */
+ gdk_device_xi2_query_state (device, window,
+ NULL, NULL,
+ NULL, NULL,
+ NULL, NULL,
+ mask);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]