selftests/hid: add Huion Kamvas Pro 19 tests
authorBenjamin Tissoires <bentiss@kernel.org>
Wed, 10 Apr 2024 17:19:35 +0000 (19:19 +0200)
committerBenjamin Tissoires <bentiss@kernel.org>
Tue, 7 May 2024 13:39:43 +0000 (15:39 +0200)
commit51de9ee0a6c7f0d06fa7b80ff2ef9f3f661c3eb6
tree0586f76bfa1d755dce02a60ffe49a4e39801f3cc
parent1b2c3caf7839adff892d8397995803d93e347974
selftests/hid: add Huion Kamvas Pro 19 tests

This tablets gets a lot of things wrong:
- the secondary button is reported through Secondary Tip Switch
- the third button is reported through Invert

We need to add some out of proximity intermediate state when moving
back and forth with the eraser mode as it can only be triggered by
physically returning the pen, meaning that the tolerated transitions
can never happen.

Link: https://lore.kernel.org/r/20240410-bpf_sources-v1-15-a8bf16033ef8@kernel.org
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
tools/testing/selftests/hid/tests/test_tablet.py