tablet: use the AttrPressureRange quirk for tablets too
authorPeter Hutterer <peter.hutterer@who-t.net>
Sat, 28 Mar 2020 23:19:27 +0000 (09:19 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 31 Mar 2020 02:49:24 +0000 (02:49 +0000)
commit72af32c89e1dd03301c1b28d35afb4c513b4ed82
treedbb2f4bc2420db5cf800edca2ea0fda95e2f86b3
parent4a9d3e8796092c0cab44da5c43e57e91458fcb08
tablet: use the AttrPressureRange quirk for tablets too

The Aiptek 8000U has a pressure offset above our default (%5) but no
meaningful way of detecting that. It doesn't provide distance or BTN_TOOL_PEN
either, so our heuristics can't hook onto anything. BTN_TOUCH is set by this
tablet but not at consistent pressure thresholds.

Work around this by shipping a quirk that ups it to 70. Aiptek
re-uses USB IDs because of course they do, so this applies to more than one
device. Let's see what breaks.

Fixes #462

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
quirks/30-vendor-aiptek.quirks
src/evdev-tablet.c