SDL_GetWindowKeyboardGrab(3)
β¨ SDL_GetWindowKeyboardGrab(3) β¨
okay so bestie, this is the SDL3 FUNCTIONS manual page for SDL_GetWindowKeyboardGrab(3) β the way it just asks a window, "are you grabbing the keyboard rn?" and gets a yes/no. it's giving keyboard grab mode detective. π
πΈ NAME πΈ
SDL_GetWindowKeyboardGrab β Get a window's keyboard grab mode. no cap. π
π¦ SYNOPSIS π¦
#include <SDL3/SDL_video.h>
bool SDL_GetWindowKeyboardGrab(SDL_Window *window);
π FUNCTION PARAMETERS π
windowβ the window to query. like, which window are we checking, bestie? that one. π
π RETURN VALUE π
Returns true if keyboard is grabbed, and false otherwise. literally just that. β¨
π₯ THREAD SAFETY π₯
This function should only be called on the main thread. do not be cute and call it from a side thread, okay? main character thread only. π«Ά
π AVAILABILITY π
This function is available since SDL 3.2.0. so if you're on older SDL, it's not giving what you need. π
π SEE ALSO π
mwah π this page was served by Simple Directmedia Layer, SDL 3.4.18, and it's all about SDL_GetWindowKeyboardGrab(3). no date in the footer, but the vibe is timeless. π
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms