Find a file
Jonas Ådahl 2e6e33bc48 Change API from using listeners to using an event queue
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>
2013-11-17 17:01:49 +01:00
m4 Port evdev code to be used as a shared library 2013-11-12 22:37:20 +01:00
src Change API from using listeners to using an event queue 2013-11-17 17:01:49 +01:00
.gitignore Port evdev code to be used as a shared library 2013-11-12 22:37:20 +01:00
autogen.sh Port evdev code to be used as a shared library 2013-11-12 22:37:20 +01:00
configure.ac Port evdev code to be used as a shared library 2013-11-12 22:37:20 +01:00
Makefile.am Port evdev code to be used as a shared library 2013-11-12 22:37:20 +01:00
README Port evdev code to be used as a shared library 2013-11-12 22:37:20 +01:00

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.