touchpad: work thumb detection into the tap state machine
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 6 Jul 2015 05:22:45 +0000 (15:22 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 9 Jul 2015 01:27:53 +0000 (11:27 +1000)
commit4a463ca70228eaf0d3b676b6d7392b3cd5eb8f00
tree74e88844373b629243653845a1b0e73f072f3afa
parent3dcf28b919ae598506852b408829a6627168e803
touchpad: work thumb detection into the tap state machine

Most thumbs are detected a few events into the sequence. Work this into parts
of the tapping state machine. Only the most common use-case is handled here -
if the first finger ends up being marked as a thumb, we return to the idle
state and ignore that touch sequence.

At any other state, we handle thumbs like any other finger.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
doc/touchpad-tap-state-machine.svg
src/evdev-mt-touchpad-tap.c