This is new wiki software and old wiki content. It's a work in progress!
Here's the explanation.
Be gentle, report bugs, leave feedback on pages, or just edit them yourself! Thanks!

SDL Wiki


Use this function to see whether an SDL_QUIT event is queued.


SDL_bool SDL_QuitRequested(void)

Return Value

Returns SDL_TRUE if SDL_QUIT is queued or SDL_FALSE otherwise.


This is actually a macro that calls SDL_PumpEvents() followed by SDL_PeepEvents(). Since it pumps the event queue, it can only be used in the main thread.

It's perfectly normal for applications to just look for SDL_QUIT in their event loop, too, without using this macro.


CategoryAPI, CategoryEvents

[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.