Skip to content
Snippets Groups Projects
Commit d93feba1 authored by Peter Hutterer's avatar Peter Hutterer
Browse files

tablet: scale the available pressure range into the pressure thresholds


Pens that don't have a pressure offset (caused by a worn-out tip) still have
basic pressure thresholds to avoid tip events when we're still a bit away from
the tablet or barely touching it. That range is currently 5% of the pressure
for tip down, 1% for tip up.

This leaves us with 95% of the range and that needs to be scaled correctly,
otherwise the bottom 5% happen before a tip event and are inaccessible where
applications don't look at pressure before tip down.

Fixes #332

Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 78efec3d
No related branches found
Tags mesa-18.3.0-rc4
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment