setWindowFocasable method

bool setWindowFocasable(
  1. bool focusable
)

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 setWindowFocasable(bool focusable) {
  return sdlSetWindowFocusable(this, focusable);
}