pub unsafe extern "C" fn SDL_SetWindowMouseGrab(
    window: *mut SDL_Window,
    grabbed: SDL_bool
)
Expand description

Set a window’s mouse grab mode.

Mouse grab confines the mouse cursor to the window.

\param window The window for which the mouse grab mode should be set.

\since This function is available since SDL 2.0.16.

\sa SDL_GetWindowMouseGrab \sa SDL_SetWindowKeyboardGrab \sa SDL_SetWindowGrab