Skip to main content

mouse_diff

Function mouse_diff 

Source
pub fn mouse_diff() -> Vec2
Expand description

Returns the change in mouse coordinates that occurred during the last step.

This is useful when implementing first person controls with a captured mouse.