getKeyboardGrab method

bool getKeyboardGrab()

Get a window's keyboard grab mode.

\param window the window to query. \returns true if keyboard is grabbed, and false otherwise.

\threadsafety This function should only be called on the main thread.

\since This function is available since SDL 3.1.3.

\sa SDL_SetWindowKeyboardGrab

extern SDL_DECLSPEC bool SDLCALL SDL_GetWindowKeyboardGrab(SDL_Window *window)

Implementation

bool getKeyboardGrab() {
  return sdlGetWindowKeyboardGrab(this);
}