Flushing Events

Just a quick one here,

What’s the best way to flush the event queue?

Cheers,

Steve :slight_smile:

Fri, 28 Mar 2003 11:22:53 -0000, tu as dit :

Just a quick one here,
What’s the best way to flush the event queue?

man SDL_PumpEvents ?–
Fabien Penso <@Fabien_Penso> | LinuxFr a toujours besoin de :
http://perso.LinuxFr.org/penso/ | http://linuxFr.org/dons/
A PHP Template Engine ? Take the best ! http://templeet.org/

And I just keep pumping until I’ve gone through them all, right? :)> -----Original Message-----

From: Fabien Penso [SMTP:penso at linuxfr.org]
Sent: Friday, March 28, 2003 11:44 AM
To: sdl at libsdl.org
Subject: Re: [SDL] Flushing Events

Fri, 28 Mar 2003 11:22:53 -0000, tu as dit :

Just a quick one here,
What’s the best way to flush the event queue?

man SDL_PumpEvents ?


Fabien Penso | LinuxFr a toujours besoin de :
http://perso.LinuxFr.org/penso/ | http://linuxFr.org/dons/
A PHP Template Engine ? Take the best ! http://templeet.org/


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

.sophos.3.67.03.25.

And I just keep pumping until I’ve gone through them all, right? :slight_smile:

Nope… it’s this:

SDL_Event evt;
SDL_PumpEvents()
while(SDL_PollEvent(&evt)) {
/* Do nothing */ ;
}

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment