Skip to main content

InputState

Trait InputState 

Source
pub trait InputState {
    // Required methods
    fn pressed(&self, key: &SingleKey) -> bool;
    fn just_pressed(&self, key: &SingleKey) -> bool;
}

Required Methods§

Source

fn pressed(&self, key: &SingleKey) -> bool

Source

fn just_pressed(&self, key: &SingleKey) -> bool

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§