mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 21:00:06 +01:00
read-only mirror of https://gitlab.freedesktop.org/libinput/libinput
The old touchpad accel code was clamping touchpad acceleration between 0.2 and 0.4, and on the test devices I have the constant_factor ended up such that in practice the accel was almost always 0.2, so rather than having a velocity based acceleration curve, in essence it was just always using an acceleration of 0.2 . This commit introduces actual velocity based acceleration based on the recently added smooth simple acceleration code from filter.c . Before feeding motion events to filter.c, they first get adjusted for touchpad resolution. For touchpads where the driver does not provide resolution info, scale based on the diagonal-size in units instead. While at it rename tp_init_accel's dispatch parameter from touchpad to tp to be consistent with all other functions. Since the acceleration is also used for scrolling also adjust the scroll start threshold for these changes. Note that switching to the smooth simple accel code, as an added bonus gives the tp code an accel profile with a threshold and a speed parameter, which is exactly what is needed for the upcoming configuration interface support. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> |
||
|---|---|---|
| doc | ||
| include/linux | ||
| m4 | ||
| src | ||
| test | ||
| tools | ||
| .gitignore | ||
| autogen.sh | ||
| configure.ac | ||
| COPYING | ||
| Makefile.am | ||
| README | ||
libinput libinput is a library that handles input devices for display servers and other applications that need to directly deal with input devices. It provides device detection, device handling, input device event processing and abstraction so minimize the amount of custom input code the user of libinput need to provide the common set of functionality that users expect. Input event processing includes scaling touch coordinates, generating pointer events from touchpads, pointer acceleration, etc. libinput originates from weston, the Wayland reference compositor. The source code of libinput can be found at: http://cgit.freedesktop.org/wayland/libinput For more information, visit: http://www.freedesktop.org/wiki/Software/libinput/