touchpad: disable the pressure axes wherever the resolution is nonzero
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 4 Feb 2021 22:35:10 +0000 (08:35 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 8 Feb 2021 03:38:26 +0000 (03:38 +0000)
commit61e41df901b7b30155188411c030c35dfa8f7c79
treef72f5a6760de5ae09039e26c4b271c978337a695
parent4422e957474a3f5ce6b414bc7115a7e33585ec66
touchpad: disable the pressure axes wherever the resolution is nonzero

The kernel/udev set the pressure resolution to nonzero to indicate the value
is in a known scale (units/g). We use that information to disable the
pressure axis on such devices - real pressure cannot be translated to
contact size.

For the kernel patch see:
https://www.spinics.net/lists/linux-input/msg71237.html

Fixes #569

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
meson.build
src/evdev-mt-touchpad.c
test/litest-device-generic-pressurepad.c [new file with mode: 0644]
test/litest-device-synaptics-pressurepad.c
test/litest.h
test/test-touchpad-tap.c
test/test-touchpad.c