bevy_input::mouse

Function accumulate_mouse_motion_system

Source
pub fn accumulate_mouse_motion_system(
    mouse_motion_event: EventReader<'_, '_, MouseMotion>,
    accumulated_mouse_motion: ResMut<'_, AccumulatedMouseMotion>,
)
Expand description

Updates the AccumulatedMouseMotion resource using the MouseMotion event. The value of AccumulatedMouseMotion is reset to zero every frame