pub fn generate_action_diffs<A: Actionlike>(
    action_state: Option<ResMut<'_, ActionState<A>>>,
    action_state_query: Query<'_, '_, (Entity, &ActionState<A>)>,
    action_diffs: EventWriter<'_, ActionDiffEvent<A>>,
    previous_values: Local<'_, HashMap<A, HashMap<Option<Entity>, f32>>>,
    previous_axis_pairs: Local<'_, HashMap<A, HashMap<Option<Entity>, Vec2>>>
)
Expand description

Generates an [Events] stream of ActionDiff from ActionState

This system is not part of the InputManagerPlugin and must be added manually.