Question about SDL Events

Hey, I have a question about how SDL does its events.
For some reason, whether I use SDL_PollEvent or
SDL_WaitEvent, SDL_GetMouseState seems to screw up my
getting the button position for my mouse (up and
down). Basically, if i press down on the mouse
button, until i move it, it registers over and over as
being down. Is this normal or am I doing something
wrong?

Doug__________________________________
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

The state returned by SDL_GetMouseState doesn’t get updated until you
call SDL_PollEvent, SDL_WaitEvent or SDL_PumpEvents.On Sun, Feb 20, 2005 at 06:15:19PM -0800, Doug Steele wrote:

Hey, I have a question about how SDL does its events.
For some reason, whether I use SDL_PollEvent or
SDL_WaitEvent, SDL_GetMouseState seems to screw up my
getting the button position for my mouse (up and
down). Basically, if i press down on the mouse
button, until i move it, it registers over and over as
being down. Is this normal or am I doing something
wrong?


Petri Latvala
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20050221/cb46d488/attachment.pgp