sdlGetWindowKeyboardGrab function
Get a window's keyboard grab mode.
\param window the window to query \returns SDL_TRUE if keyboard is grabbed, and SDL_FALSE otherwise.
\since This function is available since SDL 2.0.16.
\sa SDL_SetWindowKeyboardGrab \sa SDL_GetWindowGrab
extern DECLSPEC SDL_bool SDLCALL SDL_GetWindowKeyboardGrab(SDL_Window * window)
Implementation
bool sdlGetWindowKeyboardGrab(Pointer<SdlWindow> window) {
final sdlGetWindowKeyboardGrabLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<SdlWindow> window),
int Function(Pointer<SdlWindow> window)>('SDL_GetWindowKeyboardGrab');
return sdlGetWindowKeyboardGrabLookupFunction(window) == 1;
}