pub fn set_cursor_grabbed(ctx: &mut Context, grabbed: bool) -> GameResult
Expand description

Set whether or not the mouse is grabbed (confined to the window)

Note: macOS locks the cursor rather than confining it.