sdlGetKeyboardFocus function
Query the window which currently has keyboard focus.
\returns the window with keyboard focus.
\threadsafety This function should only be called on the main thread.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC SDL_Window * SDLCALL SDL_GetKeyboardFocus(void)
Implementation
Pointer<SdlWindow> sdlGetKeyboardFocus() {
final sdlGetKeyboardFocusLookupFunction = libSdl3.lookupFunction<
Pointer<SdlWindow> Function(),
Pointer<SdlWindow> Function()>('SDL_GetKeyboardFocus');
return sdlGetKeyboardFocusLookupFunction();
}