pub trait InputButtonAction: InputAction<Binding = ButtonBinding> {
// Required method
fn bindings(&self) -> Vec<ButtonBinding>;
}Expand description
An action that reads back true while it is held.
Required if you want a verb with two states: a jump, a shot, a pause.
Required Methods§
Sourcefn bindings(&self) -> Vec<ButtonBinding>
fn bindings(&self) -> Vec<ButtonBinding>
The controls this action starts out bound to; they are alternatives, and any one of them holds it down.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl InputButtonAction for Key
A key is its own action, bound to itself: the vocabulary a prototype reads through before it has declared what the player does.