Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Mouse Wheel? #219002
07/31/08 16:42
07/31/08 16:42
Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Roxas Offline OP
Member
Roxas  Offline OP
Member

Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Hey guys. long time no see~ Q__Q

Ive got a question :-? is it possible to implement the mouse wheel? well some further explanation.
I'm doing some isometric camera scripting right now and I want to zoom in and out by mouse wheel, but I dunno if it is possible at all to use the mousewheel for this oO.
If so I would be glad if someone could tell me how to get the mousewheel to work v_v

greetz Roxas~

Re: Mouse Wheel? [Re: Roxas] #219003
07/31/08 16:46
07/31/08 16:46
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
mickey.z


"empty"
Re: Mouse Wheel? [Re: flits] #219011
07/31/08 16:53
07/31/08 16:53
Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Roxas Offline OP
Member
Roxas  Offline OP
Member

Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
wow thanks for the quick answer.
now all is working fine =) thank you!

Re: Mouse Wheel? [Re: Roxas] #219024
07/31/08 17:16
07/31/08 17:16
Joined: May 2008
Posts: 91
Eugene, OR. USA
ATOMIX Offline
Junior Member
ATOMIX  Offline
Junior Member

Joined: May 2008
Posts: 91
Eugene, OR. USA
Maybe this will help!
mouse_wheel = sys_metrics(75);
This will check if the mouse wheel exists.

Then mickey.z will control the arc like the code below.
if (mouse_wheel != 0) { // wheel present?
// then use the wheel to zoom in and out
camera.arc -= 1.0 * mickey.z * time_step;
}
else { // wheel not detected
// use the "Home" and "End" keys to zoom in and out
camera.arc -= (key_home - key_end) * time_step;
}


Last edited by ATOMIX; 07/31/08 17:18.

ATOMIX Productions
ATOMIX Group LLC
http://theatomizer.com
A7 Pro 7.50

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1