diff options
| author | Benjamin Tissoires <bentiss@kernel.org> | 2025-11-18 18:16:26 +0100 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2025-11-20 16:45:58 +0100 |
| commit | 040adbe80135af3de7d924ea39db4bfabf57b66f (patch) | |
| tree | a9a8a3b946bae2af00827c881814443b8efbca75 /tools/lib/python/kdoc/kdoc_files.py | |
| parent | 029dff1c31c488e85c666d5e7e992700cd57462b (diff) | |
HID: bpf: Add support for the Waltop Batteryless Tablet
Several bugs as outlined in udev-hid-bpf#66 and udev-hid-bpf!198:
- pressure curve is far from linear
- tilt range is ±60, not ±127
- pressing the second button sets both tip down and
barrel switch
Fix the second button by adding a Secondary Barrel Switch in the
existing padding and check for the tip down/barrel switch down combo.
When both values become true at the same time, set the Secondary Barrel
Switch instead.
Implement a custom pressure curve that maps the hardware range 0-102
linearly to the logical range 0-1224, and maps the hardware range
103-2047 logarithmically to the logical range 1232-2047. This mapping
isn’t perfect, but it’s way more natural than the stock configuration.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Jan Felix Langenbach <JanFelix.Langenbach@protonmail.com>
Link: https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/merge_requests/200
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/lib/python/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions
