Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (TipmyPip, AndrewAMD, dBc, clonman), 18,621 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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