summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkprivate-x11.h
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2015-03-02 18:19:16 +0100
committerCarlos Garnacho <carlosg@gnome.org>2015-03-02 18:57:04 +0100
commit4cae9bdd05fba480766e791f0d140c2d8f54da62 (patch)
treeac8947c4a874327e9b9224557dfc5f702991b71e /gdk/x11/gdkprivate-x11.h
parent3ccfcf5b9f0285be7b2423a22f17a2eaea774f49 (diff)
downloadgtk+-4cae9bdd05fba480766e791f0d140c2d8f54da62.tar.gz
x11: Store last axes from device
And use these for the missing axes if the valuator mask is incomplete. This used to work fine on tablets because the Wacom driver ensures all valuators are sent, which is not true if using the evdev driver. https://bugzilla.gnome.org/show_bug.cgi?id=703610
Diffstat (limited to 'gdk/x11/gdkprivate-x11.h')
-rw-r--r--gdk/x11/gdkprivate-x11.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdk/x11/gdkprivate-x11.h b/gdk/x11/gdkprivate-x11.h
index d5f3e1d74f..c2afecf46d 100644
--- a/gdk/x11/gdkprivate-x11.h
+++ b/gdk/x11/gdkprivate-x11.h
@@ -247,6 +247,12 @@ gboolean _gdk_x11_device_xi2_get_scroll_delta (GdkX11DeviceXI2 *device,
gdouble *delta_ret);
void _gdk_device_xi2_reset_scroll_valuators (GdkX11DeviceXI2 *device);
+gdouble gdk_x11_device_xi2_get_last_axis_value (GdkX11DeviceXI2 *device,
+ gint n_axis);
+
+void gdk_x11_device_xi2_store_axes (GdkX11DeviceXI2 *device,
+ gdouble *axes,
+ gint n_axes);
#endif
void _gdk_x11_event_translate_keyboard_string (GdkEventKey *event);