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; see SDL_EventType for 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 🌈


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