smithay::backend::input

Trait KeyboardKeyEvent

Source
pub trait KeyboardKeyEvent<B: InputBackend>: Event<B> {
    // Required methods
    fn key_code(&self) -> u32;
    fn state(&self) -> KeyState;
    fn count(&self) -> u32;
}
Expand description

Trait for keyboard event

Required Methods§

Source

fn key_code(&self) -> u32

Code of the pressed key. See linux/input-event-codes.h

Source

fn state(&self) -> KeyState

State of the key

Source

fn count(&self) -> u32

Total number of keys pressed on all devices on the associated Seat

Implementations on Foreign Types§

Source§

impl KeyboardKeyEvent<LibinputInputBackend> for KeyboardKeyEvent

Source§

fn key_code(&self) -> u32

Source§

fn state(&self) -> KeyState

Source§

fn count(&self) -> u32

Implementors§