diff options
author | Greenscreener <honzikcernoh@gmail.com> | 2022-07-24 15:02:46 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2022-11-24 08:52:12 +1000 |
commit | fe923e927a8ddf4d2e82ef4757c885b06d47fa03 (patch) | |
tree | 2ba9d5bdfe49550448fa902b08bbaed8c1553d99 /src/xf86WacomDefs.h | |
parent | 2a9e5953f89a7085786326e07edcb53ad821aace (diff) | |
download | xf86-input-wacom-fe923e927a8ddf4d2e82ef4757c885b06d47fa03.tar.gz |
Implement smooth panscrolling
Diffstat (limited to 'src/xf86WacomDefs.h')
-rw-r--r-- | src/xf86WacomDefs.h | 5 |
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 *****************************************************************************/ |