|
Size: 847
Comment: Edited
|
← Revision 6 as of 2015-04-26 19:08:07 ⇥
Size: 847
Comment: Sorted related functions, see SGFunctions.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 29: | Line 29: |
| .[[SDL_PumpEvents]] | |
| Line 30: | Line 31: |
| .[[SDL_PumpEvents]] |
SDL_QuitRequested
Use this function to see whether an SDL_QUIT event is queued.
Syntax
SDL_bool SDL_QuitRequested(void)
Return Value
Returns SDL_TRUE if SDL_QUIT is queued or SDL_FALSE otherwise.
Code Examples
You can add your code example here
Remarks
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.
