mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-05 07:30:27 +01:00
read-only mirror of https://gitlab.freedesktop.org/libinput/libinput
This commit changes two things with the way distance and pressure axes are reported: 1. Distance and pressure are made mutually exclusive. When there is a distance event and a pressure event and the tool is in contact with the tablet, only the pressure change will be reported. When the tool is not in contact and both a distance and pressure change are received, only the distance update will be received. 2. Bad distance events are not reported to the caller. There is a certain distance a tool can be from the tablet where the tablet recongnizes that a tool appeared, but the tool doesn't send any useful information to the tablet. When this happens, the distance will update to it's minimum or maximum value, and no other axis updates will be sent. Since this can give a caller the impression that the tool is within a useful proximity of the tablet, we filter out any distance events with a value of maximum or minimum when the tool is not within useful proximity of the tablet. Signed-off-by: Stephen Chandler Paul <thatslyude@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com> |
||
|---|---|---|
| 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/