Module state_machine

Module state_machine 

Source
Expand description

The compositor-side StateMachine.

This module contains types to map physical key events to logical events.

The main entry point to this module is the StateMachine type.

§Example

fn create_state_machine(keymap: &[u8]) -> StateMachine {
    let context = Context::default();
    context
        .keymap_from_bytes(WriteToLog, None, keymap)
        .unwrap()
        .to_builder()
        .build_state_machine()
}

Structs§

State
The state of a state machine.
StateMachine
The compositor-side state machine.

Enums§

Direction
The direction of a key event.
Event
An event emitted by a StateMachine.