Skip to main content

SimpleKeyboardProvider

Trait SimpleKeyboardProvider 

Source
pub trait SimpleKeyboardProvider {
    // Required method
    fn get_pressed_keys(&self) -> IndexSet<KeyboardKey>;
}
Expand description

Provides the current set of pressed keys for the active frame.

The returned set is state-based (keys currently down), not edge-triggered.

Required Methods§

Source

fn get_pressed_keys(&self) -> IndexSet<KeyboardKey>

Returns keys currently pressed.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§