leafwing_input_manager::systems

Function tick_action_state

source
pub fn tick_action_state<A: Actionlike>(
    query: Query<'_, '_, &mut ActionState<A>>,
    action_state: Option<ResMut<'_, ActionState<A>>>,
    time: Res<'_, Time<Real>>,
    stored_previous_instant: Local<'_, Option<Instant>>,
)
Expand description

Advances actions timer.

Clears the just-pressed and just-released values of all ActionStates. Also resets the internal pressed_this_tick field, used to track whether to release an action.