SDL_EventAction(3type)
π SDL_EventAction(3type) π
okay bestie, so this is the page for SDL_EventAction from the SDL3 DATATYPES crew β it's literally the type of action you request from SDL_PeepEvents() β¨
πΈ NAME πΈ
SDL_EventAction β the type of action to request from SDL_PeepEvents(). that's it, that's the whole vibe π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_events.h>
typedef enum SDL_EventAction
{
SDL_ADDEVENT, /**< Add events to the back of the queue. */
SDL_PEEKEVENT, /**< Check but don't remove events from the queue front. */
SDL_GETEVENT /**< Retrieve/remove events from the front of the queue. */
} SDL_EventAction;
so like, the enum members are doing three totally different things and you gotta know which is which, no cap:
SDL_ADDEVENTβ adds events to the back of the queue. dropping them in the back, respectfully π«ΆSDL_PEEKEVENTβ checks events at the front of the queue but doesn't remove them. it's giving window shopping, look but don't touch πSDL_GETEVENTβ retrieves and removes events from the front of the queue. okay so this one actually takes them home with it π
π¦ AVAILABILITY π¦
this enum has been available since SDL 3.2.0. iconic, honestly π
fr fr, if you're passing one of these to SDL_PeepEvents(), double check which one you mean β peeking and getting are NOT the same thing and your queue will simply know the difference π
and that's the whole page, bestie!! brought to you by Simple Directmedia Layer, SDL 3.4.18, and yes this is the SDL_EventAction(3type) moment π stay hydrated, read your man pages, periodt πππΈ
π¦ 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