pub trait NamedMenuInputSource {
// Required method
fn read_input(&self) -> MenuInput;
}Expand description
Trait for converting platform-specific input (keyboard, gamepad,
touch) into abstract MenuInput.
Implementors read their hardware / event state and produce a
MenuInput struct once per frame.
Required Methods§
Sourcefn read_input(&self) -> MenuInput
fn read_input(&self) -> MenuInput
Read the current input state and return a MenuInput.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".