sdlGetGrabbedWindow function
Get the window that currently has an input grab enabled.
\returns the window if input is grabbed or NULL otherwise.
\threadsafety This function should only be called on the main thread.
\since This function is available since SDL 3.1.3.
\sa SDL_SetWindowMouseGrab \sa SDL_SetWindowKeyboardGrab
extern SDL_DECLSPEC SDL_Window * SDLCALL SDL_GetGrabbedWindow(void)
Implementation
Pointer<SdlWindow> sdlGetGrabbedWindow() {
final sdlGetGrabbedWindowLookupFunction = libSdl3.lookupFunction<
Pointer<SdlWindow> Function(),
Pointer<SdlWindow> Function()>('SDL_GetGrabbedWindow');
return sdlGetGrabbedWindowLookupFunction();
}