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
zapakitul
17
Years of Service
User Offline
Joined: 1st Mar 2007
Location: In my world
Posted: 19th Mar 2009 15:29
I tried working on a zoom in, zoom out function using dbMouseMoveZ(). Problem is, it only zooms in or zooms out. If i start by zooming out, i can do that, but then i can't zoom in. If i zoom in, then i can't zoom out. Here's my code:
dark coder
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 19th Mar 2009 16:52
dbMouseMoveZ()(along with the other move commands) tells you the elapsed movement since the last call.

zapakitul
17
Years of Service
User Offline
Joined: 1st Mar 2007
Location: In my world
Posted: 19th Mar 2009 17:47
Hm... then, do you have any idea regarding the scroll button? I know that a few years back, when i was using dbpro, i used something like:
Warspawn
19
Years of Service
User Offline
Joined: 6th Apr 2005
Location: Arizona
Posted: 20th Mar 2009 02:12
try


I use something like that for zoom because it moves in the direction the camera is facing, which is what I feel zoom should do. But either way, if you multiply your speed by the value you end up with a correctly signed number that you could apply to your z position instead if that's what you want. I am dividing the mouse movement by 10 because the movement numbers tend to be too large.

-Warspawn

Login to post a reply

Server time is: 2024-09-30 21:18:51
Your offset time is: 2024-09-30 21:18:51