SDL_SetEventEnabled(3)
π SDL_SetEventEnabled β the SDL3 FUNCTIONS glow-up β¨
ok so bestie, welcome to the SDL_SetEventEnabled(3) page, and yes it's giving very much "short and iconic." This is one of those little functions that does exactly one thing and does it flawlessly, no notes. π
πΈ NAME πΈ
SDL_SetEventEnabled β Set the state of processing events by type. That's it, that's the whole vibe: you're telling SDL whether it should be handling a certain kind of event or not. Toggle city. π¦
β¨ SYNOPSIS β¨
#include <SDL3/SDL_events.h>
void SDL_SetEventEnabled(Uint32 type, bool enabled);
Look at her. Two params, no return value, zero drama. She just does the thing and leaves. π
π«Ά FUNCTION PARAMETERS π«Ά
typeβ the type of event; seeSDL_EventTypefor details. (Go peek atSDL_EventTypeif you wanna know all your options, bestie, the list is long and honestly kind of fascinating.)enabledβ whether to process the event or not. Like,true= yes babes we're handling it,false= not today. π«
π§ THREAD SAFETY π§
It is safe to call this function from any thread. fr fr, no cap β every thread can call it, nobody's gonna fight over it. Go wild. π
β AVAILABILITY β
This function is available since SDL 3.2.0. So if you're on anything older, it's simply not there and no amount of manifesting will change that. π
π SEE ALSO π
SDL_EventEnabled(3)β the matching "wait, is this one on?" check. They're a duo, a package deal, the main characters of event-toggling. π₯
ok that's the whole page, short queen energy, we love her for it. π₯° This was the SDL_SetEventEnabled(3) page from Simple Directmedia Layer, SDL 3.4.18 β mwah, bye bestie, go toggle some events π
πΈβ¨
π¦ 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