[SDL] Whdn do events get queued?

Lilith Calbridge lilith at dcccd.edu
Mon Jun 11 19:54:01 PDT 2007



>>> On 6/11/2007 at 9:10 PM, Jeff <j_post at pacbell.net> wrote:
> On Mon June 11 2007 18:16, Manuel García Cabrera wrote:
>> If I move the mouse around, how many "MOUSEMOTION" events will get
>> queued?
> 
> A bunch ;-)
> 
> Usually it's best to ignore all but the last mousemotion event. In other 
> words, dequeue them but don't act on them until either another event occurs 
> or there are no other events in the queue, and then process the last one.
 
> Jeff

How many events can SDL queue, though, if you fail to pop them off the queue?  Does it drop the oldest events if the queue fills up?  Or does it just quit adding events until some events have been dequeued?

-- 
Lilith



More information about the SDL mailing list