Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, alibaba, TipmyPip), 1,144 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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