Function leafwing_input_manager::systems::process_action_diffs
source · [−]pub fn process_action_diffs<A: Actionlike, ID: Eq + Component + Clone>(
action_state_query: Query<'_, '_, (&mut ActionState<A>, &ID)>,
action_diffs: EventReader<'_, '_, ActionDiff<A, ID>>
)
Expand description
Generates an Events
stream of ActionDiff
from ActionState
The ID
generic type should be a stable entity identifer,
suitable to be sent across a network.
This system is not part of the InputManagerPlugin
and must be added manually.