WhatMeWorry
2006.09.28, 12:21 AM
SDL puts events in the event queue. I can see how discrete events
like key up or mouse click could be put on the queue.
But how are continuous (analog) events handled like mouse movement?
Say my mouse is currently at position (x,y) and I move the mouse
across the screen to some other point like (x+33, y+27).
Will SDL say sample the mouse position at some delta time interval?
So that a series of mouse positions would be added to the even queue?
I guess another way to say it would be, is the event queue interrupt
driven or are events polled every so often?
Or I'm I completely confused :)
thanks.
like key up or mouse click could be put on the queue.
But how are continuous (analog) events handled like mouse movement?
Say my mouse is currently at position (x,y) and I move the mouse
across the screen to some other point like (x+33, y+27).
Will SDL say sample the mouse position at some delta time interval?
So that a series of mouse positions would be added to the even queue?
I guess another way to say it would be, is the event queue interrupt
driven or are events polled every so often?
Or I'm I completely confused :)
thanks.