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

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


Try:

while(SDL_PollEvent(&event)) ...

Instead of using an if statement.

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


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
http://lists.libsdl.org/listinfo.cgi/sdl-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