[SDL] SDL mouse events.

Lucas lucas_pet at live.co.uk
Sun Mar 16 12:59:38 PDT 2008


>No, not quite 500, the queue is only 128 items long. Once the queue is full 
>SDL just discards any new events. That means you never have to >process 
>more than 128 events at a time, but if you only check for events every 
>second and you can have 500 events pile up during a second, >you will lose 
>372 events. The best idea is to use SDL_WaitEvents() to process events as 
>they come in.
>
>      Bob Pendleton

thanks everybody.

Would this mean that when the queue is full of mouse events, all key events 
are gone as well?
Is it possible to not let SDL push any mouse events on the queue? (I know 
people who poll their mouse at 1000Hz :/)
I think getting the mouse state manually (GetMouseState and 
GetRelativeMouseState) is best for me.
Does GetRelativeMouseState gets the relative state from the last time I 
called that function or relative to last mouse poll (system)?

Lucas 





More information about the SDL mailing list