SDL_SetiOSEventPump(3)

πŸ’… SDL_SetiOSEventPump πŸ’…

okay bestie, so this little cutie lives in the SDL3 manual and its whole job is turning the SDL event pump on or off on Apple iOS. that's it. that's the function. no cap. πŸ“


✨ NAME ✨

SDL_SetiOSEventPump β€” the one you call to enable or disable the SDL event pump on Apple iOS. literally its entire personality. πŸ’–


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_system.h>

void SDL_SetiOSEventPump(bool enabled);

like, that's the whole thing. no return value, she gives you nothing back, she just does. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so first things first: this function is only available on Apple iOS. only. iOS. if you're on anything else, she's not coming to the party, sorry babe. πŸŽ€


🧚 FUNCTION PARAMETERS 🧚

  • enabled β€” pass true to turn the event pump ON, or false to turn it OFF. two moods, one boolean. pick wisely. ✨

πŸ’œ THREAD SAFETY πŸ’œ

bestie. listen. this function should only be called on the main thread. do not be out here being chaotic and calling it from some random worker thread, i am begging you. main thread only. periodt. 🫢

🌈 AVAILABILITY 🌈

she's been around since SDL 3.2.0. a legend from day one, fr fr. ⭐


πŸ‘‘ SEE ALSO πŸ‘‘


okay that's the whole page, you ate that, go forth and pump your events responsibly. mwah. πŸ˜­πŸ’–

source vibes come courtesy of Simple Directmedia Layer, version SDL 3.4.18 β€” mwah, love her, bye bestie! πŸŒΈβœ¨πŸŽ€
πŸ“¦ where this page comes from