Find a file
Jonas Ådahl 758e553645 Reference count event target struct when applicable
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>
2013-12-07 16:41:43 +01:00
doc doc: hook up doxygen to generate the public API documentation 2013-12-07 14:06:46 +01:00
m4 Port evdev code to be used as a shared library 2013-11-12 22:37:20 +01:00
src Reference count event target struct when applicable 2013-12-07 16:41:43 +01:00
.gitignore doc: hook up doxygen to generate the public API documentation 2013-12-07 14:06:46 +01:00
autogen.sh Port evdev code to be used as a shared library 2013-11-12 22:37:20 +01:00
configure.ac doc: hook up doxygen to generate the public API documentation 2013-12-07 14:06:46 +01:00
Makefile.am doc: hook up doxygen to generate the public API documentation 2013-12-07 14:06:46 +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.