[Xcb] XCB keyboard input
Ran Benita
ran234 at gmail.com
Wed Mar 8 15:32:01 UTC 2017
The 9 you get is called a keycode, from your description what you want
is the keysym, ands its ASCII representation.
Look at the xcb-util-keysyms helper library; it is small and uses the
core X11 protocol:
https://cgit.freedesktop.org/xcb/util-keysyms/tree/keysyms/xcb_keysyms.h
If you need more advanced handling, you can use libxkbcommon-x11; this
library uses the XKB extension:
https://xkbcommon.org/doc/current/md_doc_quick-guide.html
https://xkbcommon.org/doc/current/group__x11.html
Both libraries are available as packages in all common distros.
Ran
More information about the Xcb
mailing list