touchpad: mark ALPS touchpads for middle button emulation
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 15 Jun 2015 04:37:49 +0000 (14:37 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Sun, 21 Jun 2015 22:12:04 +0000 (08:12 +1000)
commitaa46338e8a711c740664510a4884cfbc2488d20b
tree353f75f05e86546e44bcd072de769207e6f7aab1
parent56660494aecb3cb69c03e79f7e84f640a646afa1
touchpad: mark ALPS touchpads for middle button emulation

Alps devices don't know if there is a physical middle button on the touchpad,
so they always report one.
Since a large number of touchpads only have two buttons, enable middle button
emulation by default. Those that really don't want it can play with
configuration options, everyone else has it working by default.

The hwdb entry uses "*Alps ..*" as name to also trigger the "litest Alps..."
devices.

https://bugzilla.redhat.com/show_bug.cgi?id=1227992

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
src/evdev-mt-touchpad-buttons.c
src/evdev.c
src/evdev.h
test/pointer.c
udev/90-libinput-model-quirks.hwdb