Function leafwing_input_manager::systems::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>,
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 or not to release an action.