[SDL] Whdn do events get queued?

Ryan C. Gordon icculus at icculus.org
Mon Jun 11 19:54:04 PDT 2007


> If I move the mouse around, how many "MOUSEMOTION" events will get
> queued? How does SDL determine that? I'm just curious about how it works
> by the way.

It depends on the underlying platform...SDL queues mouse motion events 
as it gets them from the OS, and different ones work slightly 
differently, but not in any significant way.

It won't check with the OS until SDL_PumpEvents() is called in most 
cases (which is called implicitly from SDL_PollEvent()).

--ryan.




More information about the SDL mailing list