pub fn action_pressed<A>(
action: A,
) -> impl for<'w, 's> FnMut(ActionStateParam<'w, 's, A>) -> boolwhere
A: Actionlike + Clone,Expand description
Run condition that is active if ActionState::pressed is true for the given action.
pub fn action_pressed<A>(
action: A,
) -> impl for<'w, 's> FnMut(ActionStateParam<'w, 's, A>) -> boolwhere
A: Actionlike + Clone,Run condition that is active if ActionState::pressed is true for the given action.