[][src]Function smithay_client_toolkit::keyboard::map_keyboard_rmlvo_with_repeat

pub fn map_keyboard_rmlvo_with_repeat<Impl, RepeatImpl>(
    seat: &WlSeat,
    rmlvo: RMLVO,
    key_repeat_kind: KeyRepeatKind,
    implementation: Impl,
    repeat_implementation: RepeatImpl
) -> Result<WlKeyboard, Error> where
    Impl: FnMut(Event<'a>, WlKeyboard) + 'static,
    RepeatImpl: FnMut(KeyRepeatEvent, WlKeyboard) + Send + 'static, 

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

This requires you to provide an implementation to receive the events after they have been interpreted with the keymap. You must also provide an implementation to be called when KeyRepeatEvents are sent at intervals set by the KeyRepeatKind argument, this implementation can be called at anytime, independent of the dispatching of wayland events. The dispatching of KeyRepeatEvents is handled with the spawning of threads.

The keymap will be loaded from the provided RMLVO rules. Any keymap provided by the compositor will be ignored.

Returns an error if xkbcommon could not be initialized or the RMLVO specification contained invalid values.