tablet: increase pressure offset limit from 20% to 50%
authorBjørn Forsman <bjorn.forsman@gmail.com>
Sat, 17 Dec 2022 16:52:39 +0000 (17:52 +0100)
committerBjørn Forsman <bjorn.forsman@gmail.com>
Thu, 24 Aug 2023 06:04:03 +0000 (08:04 +0200)
commit3dba00845cf0be3425ab4863aac91ba95e391ee0
tree41e37f1484c329c233345ced92c479109b89118c
parentf259cac9ca29236666dc915fa451b6590adb2957
tablet: increase pressure offset limit from 20% to 50%

detect_pressure_offset() currently rejects offsets that are greater than
20%. My graphics tablet (Wacom Bamboo Fun) is about 30%. The pen tip is
2 mm. Wacom recommends replacing at 1 mm, which means this isn't worn
out yet and we should instead increase the limit to make these devices
usable.

Without this change a "pen down" event happens simultaneously with the
pen being detected -- about 1 cm above the surface -- and producing
libinput pressure of about 0.30. This means you start drawing "in the
air", without knowing up front where the cursor is going to be.

Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com>
doc/user/tablet-support.rst
src/evdev-tablet.c
test/test-tablet.c