filter: always init a delta smoothener for 10/10ms on trackpoints
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 6 Aug 2018 05:24:04 +0000 (15:24 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 6 Aug 2018 05:24:04 +0000 (15:24 +1000)
commit77f9a47996761a4106eb317e5c8d4560d813ba34
treea1578b785f8842393b39e66fe157f1db5640ad36
parent82f3e77fb24be0925ef1f44ff38fe8df804efd89
filter: always init a delta smoothener for 10/10ms on trackpoints

If the trackpoint gives us deltas with less than 10ms intervals, something is
wrong. Could be bad hardware, a glitch in the matrix or a discontinuity in
the otherwise appropriately named time-space continuum. Usually it's the
first.

Let's always set up trackpoint delta smoothening for 10ms to improve the
pointer speed calculation and avoid jerky behaviors. i.e. if a trackpoint
delta comes in below 10ms, pretend it came in with a 10ms interval for
calculating the speed.

Fixes https://gitlab.freedesktop.org/libinput/libinput/issues/104

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/filter-trackpoint.c