Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
1 registered members (AndrewAMD), 599 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Mouse Wheel #237045
11/17/08 19:20
11/17/08 19:20
Joined: Oct 2000
Posts: 113
L
Lawrence Offline OP
Member
Lawrence  Offline OP
Member
L

Joined: Oct 2000
Posts: 113
Hi,

I am wondering if there is a way to program the mouse wheel to use for forward and backward motion? I want motion only when you are rolling the wheel. I can't find it in the templates or searching the forums.

Thanks,

Lawrence

Re: Mouse Wheel [Re: Lawrence] #237053
11/17/08 19:44
11/17/08 19:44
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
You can use mickey.z for that.


Always learn from history, to be sure you make the same mistakes again...
Re: Mouse Wheel [Re: Uhrwerk] #237063
11/17/08 21:02
11/17/08 21:02
Joined: Oct 2000
Posts: 113
L
Lawrence Offline OP
Member
Lawrence  Offline OP
Member
L

Joined: Oct 2000
Posts: 113
I am sorry. I am not sure what mickey.z is?

Re: Mouse Wheel [Re: Lawrence] #237064
11/17/08 21:15
11/17/08 21:15
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Why don't you ask the mighty manual?

http://www.conitec.net/beta/amickey.htm


Always learn from history, to be sure you make the same mistakes again...
Re: Mouse Wheel [Re: Uhrwerk] #237096
11/18/08 03:16
11/18/08 03:16
Joined: Oct 2008
Posts: 218
Nashua NH
heinekenbottle Offline
Member
heinekenbottle  Offline
Member

Joined: Oct 2008
Posts: 218
Nashua NH
Well, you should read the manual, but with that said, I just wanted to post an example of code:

Code:

		camera.z += (0.5 * mickey.z);	//allow the camera to zoom in on middle mouse
			if(camera.z < 1500) camera.z = 1500;	//don't exceed bounds
			if(camera.z > 4000) camera.z = 4000;	//don't exceed bounds
		wait(1);												//avoid endless loops



It works like mouse_force and key_force.


I was once Anonymous_Alcoholic.

Code Breakpoint;

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