SDL_EventState(3)
π SDL_EventState π
okay bestie, welcome to the SDL API Reference corner of the group chat, because today we are talking about SDL_EventState(3) and honestly? it's giving event queue manager and I'm obsessed π«Ά
β¨ NAME β¨
SDL_EventState β this function lets you set the state of processing certain events. like, you're the bouncer at the club and some event types are on the list and some are... not π
πΈ SYNOPSIS πΈ
#include "SDL.h"
Uint8 SDL_EventState(Uint8 type, int state);
look at that signature. clean. iconic. two args and a return value, no notes π
π¦ DESCRIPTION π¦
So. This function allows you to set the state of processing certain event type's. That's the whole vibe. You hand it a type and a state, and it does the thing β¨
Here's the tea on what state can be, because this is the part that actually matters:
- If
stateis set toSDL_IGNORE, that event type will be automatically dropped from the event queue and will not be filtered. like it's gone gone. not parked, not pending, not "we'll get to it later" β dropped π - If
stateis set toSDL_ENABLE, that event type will be processed normally. business as usual, no cap π - If
stateis set toSDL_QUERY, thenSDL_EventStatewill return the current processing state of the specified event type. so it's not setting anything, it's just asking "hey girl, what's your status?" and getting a real answer back π
A list of event type's can be found in the SDL_Event section. go look, bestie, the receipts are there π§
β SEE ALSO β
SDL_Eventβ the whole event family, the source of truth, the main character π
and that's the page fr fr π stay hydrated, keep your event queue clean, and remember: ignore means DROPPED, not filtered π
SDL Β· Tue 11 Sep 2001, 22:59 Β· mwah, bye bestie π πβ¨
π¦ 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