aboutsummaryrefslogtreecommitdiff
path: root/src/evdev.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-08-19 11:15:09 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-11-09 15:56:55 +1000
commitb450efdf95999cad08de23ce069f04a66bdae24b (patch)
tree3aea7a9eb656b85b5b2ef391049cea1af6cb8114 /src/evdev.h
parentExit axis labelling if axes are neither rel nor abs (diff)
downloadxf86-input-evdev-b450efdf95999cad08de23ce069f04a66bdae24b.tar.gz
xf86-input-evdev-b450efdf95999cad08de23ce069f04a66bdae24b.tar.bz2
xf86-input-evdev-b450efdf95999cad08de23ce069f04a66bdae24b.zip
Support smooth scrolling on REL_WHEEL, REL_HWHEEL and REL_DIAL
Automatic smooth scrolling setup for these axes, with REL_WHEEL and REL_DIAL both mapping into vscrolling. REL_WHEEL is the preferred axis. Mouse wheel emulation is not yet updated for smooth scrolling. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'src/evdev.h')
-rw-r--r--src/evdev.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/evdev.h b/src/evdev.h
index a18a025..b2e2f42 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -55,6 +55,10 @@
#define LED_CNT (LED_MAX+1)
#endif
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 14
+#define HAVE_SMOOTH_SCROLLING 1
+#endif
+
#define EVDEV_MAXBUTTONS 32
#define EVDEV_MAXQUEUE 32