SDL_GetAppState(3)
π NAME π
SDL_GetAppState β bestie, this is literally the function that tells you what state your app is in π
β¨ SYNOPSIS β¨
#include "SDL.h"
Uint8 SDL_GetAppState(void);
π¦ DESCRIPTION π¦
okay so SDL_GetAppState hands you back the current state of your application, no cap. and here's the tea β the value it returns is a bitwise combination of these three icons π
:
SDL_APPMOUSEFOCUSβ the application has mouse focus π±οΈβ¨SDL_APPINPUTFOCUSβ the application has keyboard focus β¨οΈπSDL_APPACTIVEβ the application is visible ππΈ
so like, they can stack, they can overlap, it's giving layered. check which bits are set and you know exactly what your app is going through π«Ά
π SEE ALSO π
SDL_ActiveEvent
and that's the whole page, bestie π this one comes from the SDL era, dated Tue 11 Sep 2001, 22:59 β iconic vintage behaviour fr fr, main character energy from day one πβ
π¦ where this page comes from
- debian bookworm: libsdl1.2-dev 1.2.15+dfsg2-8 Β· LGPL-2.1-or-later
- nixos 26.05: SDL_sixel 0-unstable-2016-02-06
- nixpkgs unstable: SDL_sixel 0-unstable-2016-02-06
- ubuntu jammy: libsdl1.2-dev 1.2.15+dfsg2-6 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms