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