touchpad: if two fingers are within the lower thumb area, they're not thumbs
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 3 Oct 2018 04:19:11 +0000 (14:19 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 3 Oct 2018 04:52:36 +0000 (14:52 +1000)
commit655f565fbaa737b2508844b7a7b08c5a71a7bfba
tree54cffef76310415e8ee64dead117506a2faabaf2
parent9847329d2cfd2db31052ad081c271834585d03f8
touchpad: if two fingers are within the lower thumb area, they're not thumbs

The shape of the average hand implies that two fingers down within the lower
thumb area (the bottom few mm of the touchpad) cannot be thumbs without
significant contortion. So let's not mark them as thumb.

Fixes #126

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-mt-touchpad.c
test/litest.c
test/litest.h
test/test-touchpad.c