[][src]Module smithay_client_toolkit::keyboard

Utilities for keymap interpretation of keyboard input This module provides an implementation for wl_keyboard objects using libxkbcommon to interpret the keyboard input given the user keymap.

You simply need to provide an implementation to receive the intepreted events, as described by the Event enum of this modules.

Implementation of your NewProxy<WlKeyboard> can be done with the map_keyboard_auto or the map_keyboard_rmlvo functions depending on whether you wish to use the keymap provided by the server or a specific one.

Modules

keysyms

Structs

KeyRepeatEvent

An event sent at repeated intervals for certain keys determined by xkb_keymap_key_repeats

ModifiersState

Represents the current state of the keyboard modifiers

RMLVO

The RMLVO description of a keymap

Enums

Error

An error that occurred while trying to initialize a mapped keyboard

Event

Events received from a mapped keyboard

KeyRepeatKind

Determines the behavior of key repetition

KeyState

physical key state

Functions

map_keyboard_auto

Implement a keyboard to automatically detect the keymap

map_keyboard_auto_with_repeat

Implement a keyboard to automatically detect the keymap and send KeyRepeatEvents at set intervals

map_keyboard_rmlvo

Implement a keyboard for a predefined keymap

map_keyboard_rmlvo_with_repeat

Implement a keyboard for a predefined keymap and send KeyRepeatEvents at set intervals