SDL_HINT_EVENT_LOGGING(3)

πŸ’– SDL_HINT_EVENT_LOGGING πŸ’–

okay bestie, welcome to the SDL3 FUNCTIONS corner of the man pages, this one's literally called SDL_HINT_EVENT_LOGGING and it's the little hint that controls how chatty the logging of SDL events is when they get pushed onto the internal queue πŸŽ€

✨ NAME ✨

SDL_HINT_EVENT_LOGGING β€” a variable controlling verbosity of the logging of SDL events pushed onto the internal queue. yes that's the whole vibe, it's a dial for how much it yaps πŸ—£οΈ


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_hints.h>

#define SDL_HINT_EVENT_LOGGING "SDL_EVENT_LOGGING"

πŸ¦‹ DESCRIPTION πŸ¦‹

so the variable can be set to the following values, and bestie they go from least to most verbose, like a little volume knob πŸ“’

  • "0" β€” Don't log any events. (default) 🫢
  • "1" β€” Log most events (other than the really spammy ones). 😌
  • "2" β€” Include mouse and finger motion events. πŸ’€ (yes this is the loud one, those motion events are a lot)

lowkey, this is generally meant to be used to debug SDL itself, but it can be useful for application developers that need better visibility into what is going on in the event queue. iykyk πŸ‘‘

Logged events are sent through SDL_Log(), which means by default they appear on stdout on most platforms, or maybe OutputDebugString() on Windows, and can be funneled by the app with SDL_SetLogOutputFunction(), etc. so you can redirect the gossip wherever you want it to go ✨

this hint can be set anytime. no schedule, no waiting, she's flexible πŸ’…

πŸ‘‘ AVAILABILITY πŸ‘‘

This hint is available since SDL 3.2.0. periodt.


Simple Directmedia Layer β€’ SDL 3.4.18 β€’ SDL_HINT_EVENT_LOGGING(3)

and that's the whole page bestie, mwah 🫢 go forth and log responsibly, this was SDL 3.4.18 energy from the Simple Directmedia Layer girlies, slay πŸŒˆπŸ’–

πŸ“¦ where this page comes from