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 / Mouse Scroll

Author
Message
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 23rd Feb 2009 00:43
If possible how do I check if the player in a game used the scroll thing on the mouse?
Von Barron
15
Years of Service
User Offline
Joined: 9th Jan 2009
Location:
Posted: 23rd Feb 2009 06:36
Here is just a really easy quick example of how to use the dbMouseZ command.

Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 23rd Feb 2009 12:23
Just a note: If u use dbMouseMoveZ it will reset after calling it.

So

dbMouseMoveZ()
// code
dbMouseMoveZ()

would return for example 120, then on the next call in the same loop it will be 0.

Keep it simple.
Questions? Mail me
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 23rd Feb 2009 20:52
I'm sorry i did a bad job explaining. What i mean is how do i check if the player used the scroll button on their mouse. Like a lot of FPSs for a computer use the scroll button to change weapons.
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 23rd Feb 2009 21:57
They just told you...

[b]Yuor signutare was aresed by a deslyxic mud...
BOX2D V2 HAS HELP FILES! AND A WIKI!
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 23rd Feb 2009 22:41
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 23rd Feb 2009 23:56
Whoops sorry, i misread I got it to work

Login to post a reply

Server time is: 2024-11-25 15:16:59
Your offset time is: 2024-11-25 15:16:59