leafwing_input_manager::common_conditions

Function action_pressed

source
pub fn action_pressed<A>(
    action: A,
) -> impl FnMut(Res<'_, ActionState<A>>) -> bool
where A: Actionlike + Clone,
Expand description

Run condition that is active if ActionState::pressed is true for the given action.