• Peter Hutterer's avatar
    touchpad: make tp_detect_jumps() time-independent · 7d0e1875
    Peter Hutterer authored
    This function expected distances per-frame, not per-time which gives us
    different behaviors depending on the hardware scanout rate. Fix this by
    normalizing to a 12ms frame rate which reflects the touchpad I measured all
    the existing thresholds on.
    
    This is a bit of a problem for the test suite which doesn't use proper
    intervals and the change to do so is rather invasive. So for now we set the
    interval for test devices to whatever the time delta is so we can test the
    jumps without having to worry about intervals.
    
    Fixes #121
    Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
    7d0e1875
Name
Last commit
Last update
doc Loading commit data...
include/linux 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...