summaryrefslogtreecommitdiff
path: root/src/xf86WacomDefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xf86WacomDefs.h')
-rw-r--r--src/xf86WacomDefs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xf86WacomDefs.h b/src/xf86WacomDefs.h
index df21856..92c4d91 100644
--- a/src/xf86WacomDefs.h
+++ b/src/xf86WacomDefs.h
@@ -68,6 +68,11 @@
#define BTN_STYLUS3 0x149
#endif
+/* This value is arbitrary, but low enough values can cause integer division to round
+ * non-zero numbers to zero. See https://github.com/linuxwacom/xf86-input-wacom/pull/222#discussion_r927920625.
+ */
+#define PANSCROLL_INCREMENT 0xffff
+
/******************************************************************************
* Forward Declarations
*****************************************************************************/