evdev: enable button scrolling by default on mice without wheels
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 28 Apr 2015 06:45:35 +0000 (16:45 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 28 Apr 2015 07:12:31 +0000 (17:12 +1000)
commita7b2d04e90cb66526a825deaf38da9924b4fb89e
tree0901c8dbb30c72fb48a707a45efd7e71c8431d77
parent512a00505ad45cf93a84522e132327a5b0dbc221
evdev: enable button scrolling by default on mice without wheels

If we have a middle button but no wheels, enable on-button scrolling for the
middle button by default. This applies e.g. to the Logitech trackball added as
new test device here.

This makes the separate check for POINTINGSTICK obsolete but I'd rather leave
this in to be more explicit about it.

https://bugs.freedesktop.org/show_bug.cgi?id=90208

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
src/evdev.c
test/Makefile.am
test/litest-logitech-trackball.c [new file with mode: 0644]
test/litest.c
test/litest.h
test/pointer.c