Skip to content

Commit

Permalink
Clarified the documentation for SDL_FlushEvents() so people know it o…
Browse files Browse the repository at this point in the history
…nly affects currently queued events.
  • Loading branch information
slouken committed Jul 9, 2014
1 parent f7461cd commit f1ca7bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/SDL_events.h
Expand Up @@ -584,6 +584,9 @@ extern DECLSPEC SDL_bool SDLCALL SDL_HasEvents(Uint32 minType, Uint32 maxType);

/**
* This function clears events from the event queue
* This function only affects currently queued events. If you want to make
* sure that all pending OS events are flushed, you can call SDL_PumpEvents()
* on the main thread immediately before the flush call.
*/
extern DECLSPEC void SDLCALL SDL_FlushEvent(Uint32 type);
extern DECLSPEC void SDLCALL SDL_FlushEvents(Uint32 minType, Uint32 maxType);
Expand Down

0 comments on commit f1ca7bd

Please sign in to comment.