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 / Detecting mouse scroll

Author
Message
zapakitul
17
Years of Service
User Offline
Joined: 1st Mar 2007
Location: In my world
Posted: 12th May 2009 22:12
Is there anyway i can detect whether a user scroll froward or backward? I need to zoom in and out the camera using the scroll and so far i only managed to do it if the user presses W and scrolls, or presses S and scrolls. Here's my code:
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 12th May 2009 22:12
dbMouseMoveZ()

i like orange
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 12th May 2009 22:13 Edited at: 12th May 2009 22:13
dbMouseMoveZ() returns a value how far it has been scrolled, negative for scrolling down.

Beat me to it :S

Login to post a reply

Server time is: 2024-11-05 18:58:19
Your offset time is: 2024-11-05 18:58:19