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