sdlSetWindowFocusable function
Set whether the window may have input focus.
\param window the window to set focusable state. \param focusable true to allow input focus, false to not allow input focus. \returns true on success or false on failure; call SDL_GetError() for more information.
\threadsafety This function should only be called on the main thread.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC bool SDLCALL SDL_SetWindowFocusable(SDL_Window *window, bool focusable)
Implementation
bool sdlSetWindowFocusable(Pointer<SdlWindow> window, bool focusable) {
final sdlSetWindowFocusableLookupFunction = libSdl3.lookupFunction<
Uint8 Function(Pointer<SdlWindow> window, Uint8 focusable),
int Function(
Pointer<SdlWindow> window, int focusable)>('SDL_SetWindowFocusable');
return sdlSetWindowFocusableLookupFunction(window, focusable ? 1 : 0) == 1;
}