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