mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 02:20:05 +01:00
read-only mirror of https://gitlab.freedesktop.org/libinput/libinput
If the target of an event is a reference counted object, such as libinput_seat and libinput_device, make events own its own reference to the object, releasing it when destroyed. In order to do this, a new API requirement and function are introduced; libinput_event_destroy(). The user is required to use libinput_event_destroy() instead of free() after having retrieved an event using libinput_get_event(). This fixes a race that would be triggered if a device or seat would be added and removed before the user calling libinput_get_event(). Signed-off-by: Jonas Ådahl <jadahl@gmail.com> |
||
|---|---|---|
| doc | ||
| m4 | ||
| src | ||
| .gitignore | ||
| autogen.sh | ||
| configure.ac | ||
| Makefile.am | ||
| README | ||
This library does processing on input device events while providing an API to the the user used for delegating more useful input events. Input event processing includes scaling touch coordinates, generating pointer events from touchpads, pointer acceleration, etc. It is based on the input code from the weston Wayland reference compositor. It has no other dependencies than libmtdev and supports only evdev devices.