[SDL] SDL_QuitRequested() weird bug
Brian
brian.ripoff at gmail.com
Mon Aug 3 07:19:33 PDT 2009
You have to remove events from the event queue or it will fill. There
are a few ways of interacting with the event queue. A simple, empty
PollEvent() loop will work. You can also use SDL_PeepEvents() and
SDL_PumpEvents(), but that is unnecessarily complicated.
SDL_QuitRequested() is only a simple macro above Peep and Pump events
anyway: http://svn.libsdl.org/branches/SDL-1.2/include/SDL_quit.h
Can you tell us more about
- why you want to avoid polling?
- the bug you encounter even when clearing the event queue
On Mon, Aug 3, 2009 at 6:34 AM, Vladimir<vladimirsan at gmail.com> wrote:
> Hi
>
> I'm trying to use exactly this piece of code to start my main loop (on
> Windows + Codeblocks)
>
> also I've been looking everywhere...looks like SDL_QuitRequested it's not
> very popular...
>
> the thing is I was trying to not use polling...I even tried to use
> SDL_PeepEvents + SDL_PumpEvents but the same weird bug happens.
More information about the SDL
mailing list