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 / Mouse wheel being rolled backwards?

Author
Message
General Jackson
User Banned
Posted: 25th Nov 2010 20:09
How do I detect if the mousewheel is being rolled backwards?

Thanks,


GJ


baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 25th Nov 2010 20:17
Not sure whether it's positive or negative but "mousemovez()" should return a value you can check.

The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 25th Nov 2010 21:13
Quote: "Not sure whether it's positive or negative but "mousemovez()" should return a value you can check."

Yep, it does return negative when rolled backwards, and positive when rolled forwards. I think it returns values in steps of 120.

Cheers

SLAYER RULES! YEAH, MAN!!
General Jackson
User Banned
Posted: 26th Nov 2010 00:47

So this isn't working. If I have mousemovez()=120 then mousemovez()=-120 won't work :S


GIVE ME TEH CODEZ!1!
lol.

=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 26th Nov 2010 00:58
Hows this?



Or have I missunderstood?

The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 26th Nov 2010 01:07
Try this:



Cheers

SLAYER RULES! YEAH, MAN!!
General Jackson
User Banned
Posted: 26th Nov 2010 01:08
That did it =PRof=, thanks

Login to post a reply

Server time is: 2026-07-21 12:49:44
Your offset time is: 2026-07-21 12:49:44