Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Help with mouse input please

Author
Message
Troll Fiddler
19
Years of Service
User Offline
Joined: 19th Jan 2005
Location: Mayo, Ireland
Posted: 30th Sep 2005 17:59
Hi,

I'm popping up a sprite and disabling user input from the mouse whilst the sprite is on screen. However the mouse movements seem to be getting buffered somewhere, because if I move the mouse while input is disabled, and then later re-enable input, the camera moves on it's own in the direction I've moved the mouse while input was disabled...er, if you see what I mean.

Can anyone tell me how to clear or disable the mouse movement buffer in the SDK?

Thanks very much,

T.
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 30th Sep 2005 19:25
When you remove the sprite from the display, just grab the mouse movement values using dbMouseMoveX() & dbMouseMoveY(), and then do nothing with the results.

For free Plug-ins and source code http://www.matrix1.demon.co.uk
Troll Fiddler
19
Years of Service
User Offline
Joined: 19th Jan 2005
Location: Mayo, Ireland
Posted: 2nd Oct 2005 14:20
Ah so, I'll give that a try. Thanks Ian.
Troll Fiddler
19
Years of Service
User Offline
Joined: 19th Jan 2005
Location: Mayo, Ireland
Posted: 3rd Oct 2005 11:45
Worked perfectly, thanks a million.

T.

Login to post a reply

Server time is: 2024-03-29 01:25:14
Your offset time is: 2024-03-29 01:25:14