Wiki Page Content

Differences between revisions 4 and 5
Revision 4 as of 2011-06-12 16:26:58
Size: 579
Editor: SheenaSmith
Comment: update content - w/ Sam (RF)
Revision 5 as of 2013-08-08 23:15:01
Size: 847
Editor: RyanGordon
Comment: Edited
Deletions are marked like this. Additions are marked like this.
Line 23: Line 23:
''You can add useful comments here'' 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.
Line 28: Line 30:
 .[[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.


CategoryAPI, CategoryEvents

None: SDL_QuitRequested (last edited 2015-04-26 19:08:07 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit