Function tetra::window::set_mouse_grabbed[][src]

pub fn set_mouse_grabbed(ctx: &mut Context, mouse_grabbed: bool)
Expand description

Sets whether or not the mouse is grabbed by the window.

When this is active, the cursor will not be able to leave the window while it is focused.