The snippets are not complete, and some support code is omitted. You
can find complete and more complex examples in the source directory:
-1. test/interactive-evdev.c contains an interactive evdev client.
+1. tools/interactive-evdev.c contains an interactive evdev client.
-2. test/interactive-x11.c contains an interactive X11 client.
+2. tools/interactive-x11.c contains an interactive X11 client.
-3. test/interactive-wayland.c contains an interactive Wayland client.
+3. tools/interactive-wayland.c contains an interactive Wayland client.
Also, the library contains many more functions for examining and using
the library context, the keymap and the keyboard state. See the
executable('how-to-type', 'tools/how-to-type.c', dependencies: tools_dep)
endif
if cc.has_header('linux/input.h')
- executable('interactive-evdev', 'test/interactive-evdev.c', dependencies: tools_dep)
+ executable('interactive-evdev', 'tools/interactive-evdev.c', dependencies: tools_dep)
endif
if get_option('enable-x11')
x11_tools_dep = declare_dependency(
xcb_xkb_dep,
],
)
- executable('interactive-x11', 'test/interactive-x11.c', dependencies: x11_tools_dep)
+ executable('interactive-x11', 'tools/interactive-x11.c', dependencies: x11_tools_dep)
endif
if get_option('enable-wayland')
wayland_client_dep = dependency('wayland-client', version: '>=1.2.0', required: false)
wayland_scanner_client_header_gen.process(xdg_shell_xml),
]
executable('interactive-wayland',
- 'test/interactive-wayland.c',
+ 'tools/interactive-wayland.c',
xdg_shell_sources,
dependencies: [tools_dep, wayland_client_dep])
endif
/*
* Note: This program only handles the core keyboard device for now.
* It should be straigtforward to change struct keyboard to a list of
- * keyboards with device IDs, as in test/interactive-evdev.c. This would
+ * keyboards with device IDs, as in tools/interactive-evdev.c. This would
* require:
*
* - Initially listing the keyboard devices.
* can be used as a replacement for Xlib's keyboard handling.
*
* Following is an example workflow using xkbcommon-x11. A complete
- * example may be found in the test/interactive-x11.c file in the
+ * example may be found in the tools/interactive-x11.c file in the
* xkbcommon source repository. On startup:
*
* 1. Connect to the X server using xcb_connect().