Function ggez::mouse::get_relative_mode [] [src]

pub fn get_relative_mode(ctx: &Context) -> bool

Get whether or not the mouse is in relative mode.

In relative mode, the cursor is hidden and doesn't move when the mouse does, but relative motion events are still generated. This is useful for things such as implementing mouselook in an FPS.