mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-07 11:58:04 +02:00
doc: add links to the two debugging tools as examples
These are the simplest examples on how to use libinput and should be enough to
get any potential user started.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 14d0cd9d38)
This commit is contained in:
parent
33a6613671
commit
d7d64d9871
1 changed files with 17 additions and 0 deletions
17
README.txt
17
README.txt
|
|
@ -67,6 +67,23 @@ http://wayland.freedesktop.org/libinput/doc/latest/modules.html
|
||||||
High-level documentation about libinput's features:
|
High-level documentation about libinput's features:
|
||||||
http://wayland.freedesktop.org/libinput/doc/latest/pages.html
|
http://wayland.freedesktop.org/libinput/doc/latest/pages.html
|
||||||
|
|
||||||
|
Examples of how to use libinput are the debugging tools in the libinput
|
||||||
|
repository. Developers are encouraged to look at those tools for a
|
||||||
|
real-world (yet simple) example on how to use libinput.
|
||||||
|
|
||||||
|
- A commandline debugging tool: https://cgit.freedesktop.org/wayland/libinput/tree/tools/event-debug.c
|
||||||
|
- A GTK application that draws cursor/touch/tablet positions: https://cgit.freedesktop.org/wayland/libinput/tree/tools/event-gui.c
|
||||||
|
|
||||||
|
libinput provides a
|
||||||
|
[pkg-config](https://www.freedesktop.org/wiki/Software/pkg-config/) file.
|
||||||
|
Usually a program will use the `PKG_CHECK_MODULES` autoconf macro.
|
||||||
|
Otherwise, the most rudimentary way to compile and link a program against
|
||||||
|
libinput is:
|
||||||
|
|
||||||
|
gcc -o myprogram myprogram.c `pkg-config --cflags --libs libinput`
|
||||||
|
|
||||||
|
For further information on using pkgconfig see the pkg-config documentation.
|
||||||
|
|
||||||
License
|
License
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue