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.

DarkBASIC Professional Discussion / mousemovey() troubles

Author
Message
Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 17th Mar 2010 21:24
hey, I am having a bit of troubles with mousemovey(), it seems to function but this line wont show anything but zero :S

print "mousemovey "+str$(mousemovey())

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 17th Mar 2010 21:31
Thing with mousemove X, Y and Z, is that they don't retain their value, when you read from them, they reset to 0 so are ready for the next movement.

So store them in variables in your main loop, then check those to get proper readings.


Health, Ammo, and bacon and eggs!
Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 17th Mar 2010 21:39
thanks man, saved the day

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 18th Mar 2010 01:03
I know this is the DBP forum, but it's worth mentioning this is a change to DB Classic, which retained the value. I can't tell you how many hours I wasted converting from one to the other!

Login to post a reply

Server time is: 2026-07-27 07:33:27
Your offset time is: 2026-07-27 07:33:27