summaryrefslogtreecommitdiff
path: root/gdk/gdkdevice.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-06-10 14:35:01 +0000
committerMatthias Clasen <mclasen@redhat.com>2020-06-10 14:35:01 +0000
commit4b241f8da2e836958f89d6def83decae29dae471 (patch)
treea8d30ff22724a413e7030822fab5248d4ad472b8 /gdk/gdkdevice.h
parentbdd6ae325262e6e5743dc835fec912dcd708dabf (diff)
parent4317c008f00da720b52e24573b1bd717270dd423 (diff)
downloadgtk+-4b241f8da2e836958f89d6def83decae29dae471.tar.gz
Merge branch 'scroll-compression' into 'master'
gdk: Compress scroll events Closes #2800 See merge request GNOME/gtk!2066
Diffstat (limited to 'gdk/gdkdevice.h')
-rw-r--r--gdk/gdkdevice.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/gdk/gdkdevice.h b/gdk/gdkdevice.h
index bd5a55bcf4..844b7f69fc 100644
--- a/gdk/gdkdevice.h
+++ b/gdk/gdkdevice.h
@@ -85,22 +85,20 @@ typedef enum {
GDK_DEVICE_TYPE_FLOATING
} GdkDeviceType;
-/* We don't allocate each coordinate this big, but we use it to
- * be ANSI compliant and avoid accessing past the defined limits.
- */
-#define GDK_MAX_TIMECOORD_AXES 128
/**
* GdkTimeCoord:
* @time: The timestamp for this event.
- * @axes: the values of the device’s axes.
+ * @flags: Flags indicating what axes are present
+ * @axes: axis values
*
* A #GdkTimeCoord stores a single event in a motion history.
*/
struct _GdkTimeCoord
{
guint32 time;
- gdouble axes[GDK_MAX_TIMECOORD_AXES];
+ GdkAxisFlags flags;
+ double axes[GDK_AXIS_LAST];
};
GDK_AVAILABLE_IN_ALL