[SDL] getting mouse wheel states
jsilicon at earthlink.net
Thu Mar 9 19:08:45 PST 2006
zed zeek wrote:
> but it works for mouse button left,right + middle
> i assume im using it right (arent i?) if not how should it be used.
From the code, it looks like you're trying to find out if the mouse
wheel is being 'held down' in its 'up' state, which doesn't make too
much sense on my end -- perhaps you're trying to get something else, but
if so, it wasn't clear from the what exactly you're trying to get. Can
you explain what you're trying to do?
Mouse wheel movements are never in a 'held down' state -- the operating
system, mouse, and/or driver is just sending a 'down' event (I assume
they tend to send an immediate 'up' event too, but I didn't verify it)
every time the wheel has moved a significant amount.
Come to think of it, the only way I can think of to really 'hold down' a
mouse wheel movement for any significant amount of time would be to take
a Dremel Tool to it.
More information about the SDL