Closed Shute052 closed 5 months ago
InputMap<A>
fn with(mut self, action: A, input: impl Into<Item = UserInput>)
fn with_one_to_many(mut self, action: A, inputs: impl IntoIterator<Item = UserInput>)
fn with_multiple(mut self, bindings: impl IntoIterator<Item = (A, UserInput)>) -> Self
fn with_gamepad(mut self, gamepad: Gamepad) -> Self
bindings(&self) -> impl Iterator<Item = (&A, &UserInput)>
actions(&self) -> impl Iterator<Item = &A>
InputMap::build
InputMap::which_pressed
process_actions
InputMap<A>
with short configurations:fn with(mut self, action: A, input: impl Into<Item = UserInput>)
.fn with_one_to_many(mut self, action: A, inputs: impl IntoIterator<Item = UserInput>)
.fn with_multiple(mut self, bindings: impl IntoIterator<Item = (A, UserInput)>) -> Self
.fn with_gamepad(mut self, gamepad: Gamepad) -> Self
.InputMap<A>
:bindings(&self) -> impl Iterator<Item = (&A, &UserInput)>
for iterating over all registered action-input bindings.actions(&self) -> impl Iterator<Item = &A>
for iterating over all registered actions.InputMap::build
method in favor of new fluent builder pattern.InputMap::which_pressed
method toprocess_actions
to better reflect its current functionality for clarity.