SDL_EventEnabled(3)
π SDL_EventEnabled π
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and today's main character is SDL_EventEnabled β she's the girl who tells you whether a certain type of event is currently being processed or not. Query the state of processing events by type. that's it, that's the whole vibe check π¦
β¨ NAME β¨
SDL_EventEnabled β query the state of processing events by type π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_events.h>
bool SDL_EventEnabled(Uint32 type);
like. she's simple. she's elegant. she takes one arg and gives you a bool. periodt π
π«Ά FUNCTION PARAMETERS π«Ά
typeβ the type of event you're asking about; seeSDL_EventTypefor all the deets, iykyk π
π RETURN VALUE π
Returns true if the event is being processed, false otherwise. no in-between, no "it's complicated", just a clean yes-or-no situation fr fr β¨
π₯ THREAD SAFETY π₯
It is safe to call this function from any thread. like, literally any thread. go off, multi-threaded queen ππ¦
β AVAILABILITY β
This function is available since SDL 3.2.0 π so if you're on something older than that... bestie. upgrade. π
π SEE ALSO π
SDL_SetEventEnabled(3)β the other half of the duo, the one who actually flips the switch π
and that's the whole page!! mwah π this icon of a manpage is brought to you by Simple Directmedia Layer, SDL 3.4.18, and the date stamp says SDL_EventEnabled(3) β so go forth and query those events, bestie π§β¨
π¦ 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