mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 22:10:05 +01:00
read-only mirror of https://gitlab.freedesktop.org/libinput/libinput
Instead of having the input drivers invoke user set callbacks during
libinput_device_dispatch() and add_fd callback, let the driver queue
events that the user then reads from using libinput_device_get_event().
A typical use case would be:
struct libinput_device *device = ...;
struct libinput_event *event;
libinput_device_dispatch(device);
while ((event = libinput_device_get_event(device))) {
process_event(device, event);
free(event);
}
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
|
||
|---|---|---|
| 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.