wayland-kbd 0.1.1

Keyboard mapping utility for wayland-client using libxkbcommon.
docs.rs failed to build wayland-kbd-0.1.1
Please check the build logs and, if you believe this is docs.rs' fault, open an issue.
Visit the last successful build: wayland-kbd-0.13.1

Keyboard mapping utility for wayland-client using libxkbcommon.

This library provides a simple wrapper for the wayland Keyboard objects, handling all keymap issues using libxkbcommon in a dynamic way (loading the library dynamically and thus not being linked to it).

To use it, simply call MappedKeyboard::new(..) to wrap you keyboard object and set the key_action callback. This callback will be provided the keycode, the new state of the key (up or down), the keyboard ID, as well as a KbState handle.

This handle will allow you to retrive the keysym associated to the keycode and compare it to the values defined in the keysyms module, or directly restrieve an (utf8) String representation of this character.