Function ggez::mouse::set_relative_mode[][src]

pub fn set_relative_mode(ctx: &Context, mode: bool)

Set 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.