mirror of
https://github.com/encounter/SDL.git
synced 2025-12-08 13:15:10 +00:00
Remove slightly misleading comment in the example code
This commit is contained in:
@@ -811,7 +811,7 @@ extern DECLSPEC void SDLCALL SDL_FlushEvents(Uint32 minType, Uint32 maxType);
|
|||||||
* while (game_is_still_running) {
|
* while (game_is_still_running) {
|
||||||
* SDL_Event event;
|
* SDL_Event event;
|
||||||
* SDL_PumpEvents();
|
* 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.
|
* // decide what to do with this event.
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user