Skip to content

Commit

Permalink
Remove slightly misleading comment in the example code
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 15, 2021
1 parent ddf1d5c commit 0dc57b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/SDL_events.h
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ extern DECLSPEC void SDLCALL SDL_FlushEvents(Uint32 minType, Uint32 maxType);
* while (game_is_still_running) {
* SDL_Event event;
* SDL_PumpEvents();
* while (SDL_PeepEvents(&event, 1, SDL_GETEVENT, 0, SDL_LASTEVENT) == 1) { // poll until all events are handled!
* while (SDL_PeepEvents(&event, 1, SDL_GETEVENT, 0, SDL_LASTEVENT) == 1) {
* // decide what to do with this event.
* }
*
Expand Down

0 comments on commit 0dc57b0

Please sign in to comment.