pub fn update_action_state<A: Actionlike>(
input_store: Res<'_, CentralInputStore>,
clash_strategy: Res<'_, ClashStrategy>,
gamepads: Res<'_, Gamepads>,
action_state: Option<ResMut<'_, ActionState<A>>>,
input_map: Option<Res<'_, InputMap<A>>>,
query: Query<'_, '_, (&mut ActionState<A>, &InputMap<A>)>,
)
Expand description
Fetches the CentralInputStore
to update ActionState
according to the InputMap
.
Clashes will be resolved according to the ClashStrategy
resource.