• Peter Hutterer's avatar
    tablet: scale the available pressure range into the pressure thresholds · d93feba1
    Peter Hutterer authored
    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: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
    d93feba1
Name
Last commit
Last update
.gitlab/issue_templates Loading commit data...
.gitlab-ci Loading commit data...
doc Loading commit data...
include Loading commit data...
quirks Loading commit data...
src Loading commit data...
test Loading commit data...
tools Loading commit data...
udev Loading commit data...
.dir-locals.el Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.vimdir Loading commit data...
CODING_STYLE.md Loading commit data...
COPYING Loading commit data...
README.md Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...