Function sdl2_sys::SDL_SetWindowMouseGrab
source · 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. \param grabbed This is SDL_TRUE to grab mouse, and SDL_FALSE to release.
\since This function is available since SDL 2.0.16.
\sa SDL_GetWindowMouseGrab \sa SDL_SetWindowKeyboardGrab \sa SDL_SetWindowGrab