Function fermium::video::SDL_SetWindowKeyboardGrab
source · pub unsafe extern "C" fn SDL_SetWindowKeyboardGrab(
window: *mut SDL_Window,
grabbed: SDL_bool
)
Expand description
Set a window’s keyboard grab mode.
If the caller enables a grab while another window is currently grabbed, the other window loses its grab in favor of the caller’s window.
window
The window for which the keyboard grab mode should be set.grabbed
This is SDL_TRUE to grab keyboard, and SDL_FALSE to release.
See Also: SDL_GetWindowKeyboardGrab, SDL_SetWindowMouseGrab, SDL_SetWindowGrab