selftests/hid: tablets: add a couple of XP-PEN tablets
authorBenjamin Tissoires <bentiss@kernel.org>
Wed, 10 Apr 2024 17:19:33 +0000 (19:19 +0200)
committerBenjamin Tissoires <bentiss@kernel.org>
Tue, 7 May 2024 13:39:34 +0000 (15:39 +0200)
commit03899011df4b2bb0f9b3ac57b1044b161a336f31
tree9152c64498c1d1a4b6e10121f0280c82dc5c1ef0
parente14d88d9b8dae40c6f612c6fc74b7d03d12f3c94
selftests/hid: tablets: add a couple of XP-PEN tablets

Those tablets don't need special initialization, but are reporting
the events with the wrong usages:
- tip switch is used when the eraser should be used
- eraser is used instead of the secondary barrel switch

Add tests for those so we don't regress in the future.

Currently we set x/y tilt to 0 to not trigger the bpf program
compensate_coordinates_by_tilt()

Link: https://lore.kernel.org/r/20240410-bpf_sources-v1-13-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