2014-12-09 13:19:54 +10:00
|
|
|
/*!@mainpage
|
|
|
|
|
|
2014-02-26 19:36:38 +01:00
|
|
|
libinput
|
2014-12-09 13:19:54 +10:00
|
|
|
========
|
2014-02-26 19:36:38 +01:00
|
|
|
|
|
|
|
|
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.
|
2013-11-10 17:55:40 +01:00
|
|
|
Input event processing includes scaling touch coordinates, generating
|
|
|
|
|
pointer events from touchpads, pointer acceleration, etc.
|
|
|
|
|
|
2015-05-28 08:04:42 +10:00
|
|
|
libinput originates from
|
|
|
|
|
[weston](http://cgit.freedesktop.org/wayland/weston/), the Wayland reference
|
|
|
|
|
compositor.
|
|
|
|
|
|
2015-05-28 09:33:07 +10:00
|
|
|
Architecture
|
|
|
|
|
------------
|
|
|
|
|
|
|
|
|
|
libinput is not used directly by applications, rather it is used by the
|
|
|
|
|
xf86-input-libinput X.Org driver or wayland compositors. The typical
|
|
|
|
|
software stack for a system running Wayland is:
|
|
|
|
|
|
|
|
|
|
@dotfile libinput-stack-wayland.gv
|
|
|
|
|
|
|
|
|
|
Where the Wayland compositor may be Weston, mutter, KWin, etc. Note that
|
|
|
|
|
Wayland encourages the use of toolkits, so the Wayland client (your
|
|
|
|
|
application) does not usually talk directly to the compositor but rather
|
|
|
|
|
employs a toolkit (e.g. GTK) to do so.
|
|
|
|
|
|
|
|
|
|
The simplified software stack for a system running X.Org is:
|
|
|
|
|
|
|
|
|
|
@dotfile libinput-stack-xorg.gv
|
|
|
|
|
|
|
|
|
|
Again, on a modern system the application does not usually talk directly to
|
|
|
|
|
the X server using Xlib but rather employs a toolkit to do so.
|
|
|
|
|
|
2015-05-28 08:04:42 +10:00
|
|
|
Source code
|
|
|
|
|
-----------
|
2014-02-26 19:36:38 +01:00
|
|
|
|
|
|
|
|
The source code of libinput can be found at:
|
|
|
|
|
http://cgit.freedesktop.org/wayland/libinput
|
2013-11-10 17:55:40 +01:00
|
|
|
|
2015-05-28 08:04:42 +10:00
|
|
|
For a list of current and past releases visit:
|
2014-02-26 19:36:38 +01:00
|
|
|
http://www.freedesktop.org/wiki/Software/libinput/
|
2014-12-09 12:58:04 +10:00
|
|
|
|
2015-05-28 08:04:42 +10:00
|
|
|
Reporting Bugs
|
|
|
|
|
--------------
|
|
|
|
|
|
2014-12-09 12:58:04 +10:00
|
|
|
Bugs can be filed in the libinput component of Wayland:
|
2015-02-06 08:58:55 +10:00
|
|
|
https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=libinput
|
2014-12-09 12:58:04 +10:00
|
|
|
|
2015-05-28 08:04:42 +10:00
|
|
|
Where possible, please provide an
|
|
|
|
|
[evemu](http://www.freedesktop.org/wiki/Evemu/) recording of the input
|
|
|
|
|
device and/or the event sequence in question.
|
|
|
|
|
|
|
|
|
|
Documentation
|
|
|
|
|
-------------
|
|
|
|
|
|
|
|
|
|
Developer API documentation:
|
2014-12-09 12:58:04 +10:00
|
|
|
http://wayland.freedesktop.org/libinput/doc/latest/modules.html
|
2014-12-09 13:19:54 +10:00
|
|
|
|
2015-05-28 08:04:42 +10:00
|
|
|
High-level documentation about libinput's features:
|
|
|
|
|
http://wayland.freedesktop.org/libinput/doc/latest/pages.html
|
|
|
|
|
|
|
|
|
|
License
|
|
|
|
|
-------
|
|
|
|
|
|
|
|
|
|
libinput is licensed under the MIT license.
|
|
|
|
|
|
2015-06-11 12:09:18 +10:00
|
|
|
> Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
|
> copy of this software and associated documentation files (the "Software"),
|
|
|
|
|
> to deal in the Software without restriction, including without limitation
|
|
|
|
|
> the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
|
> and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
|
> Software is furnished to do so, subject to the following conditions: [...]
|
2015-05-28 08:04:42 +10:00
|
|
|
|
|
|
|
|
See the [COPYING](http://cgit.freedesktop.org/wayland/libinput/tree/COPYING)
|
|
|
|
|
file for the full license information.
|
|
|
|
|
|
2014-12-09 13:19:54 +10:00
|
|
|
*/
|