[SDL] esc detector wont run -- 'out of scope'

Brian Puthuff brian.puthuff at gmail.com
Fri Mar 17 15:58:33 PDT 2017


while(SDL_PollEvent(&event)) ...

Instead of using an if statement.

That will loop through the event queue on each iteration of the main while

On Mar 17, 2017 3:44 PM, "speartip" <clangray at fastmail.com> wrote:

Sorry: forgot to post output:
flag 1
flag 1
flag 1
flag 1
flag 1
flag 1
flag 1
.....ad infinitum

gameRunning is never set to false

SDL mailing list
SDL at lists.libsdl.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20170317/73fd191d/attachment.htm>

More information about the SDL mailing list