Game Development Community

Mouse wheel

by Erik Madison · in Torque Game Engine · 10/30/2002 (5:57 pm) · 4 replies

Anyone know how to use the mouse wheel in the scripts? I'd like to bind my next/previous weapon commands to it, and I can't figure out what to call it.

#1
10/30/2002 (7:26 pm)
You need to use Tim Newell's inventory manager to get it to work. Atleast to do it in the example below. I didn't use the mouse wheel I binded the cycling to keys but i'm sure it works.

This is the tutorial I used by Tim.

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=1955

Here is a link with the scripting answer.
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=3160
#2
10/31/2002 (11:29 pm)
I just add this to default.binds

moveMap.bind( mouse, zaxis, yourfunctionhere );

Then add it to the config.cs in your client folder as well, all works fine..
#3
11/01/2002 (2:05 am)
I just wrote a new "tutorial" thats much simplier and implements the inventory in script only. Also it should work in multiplayer. You can find it here

http://www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=784...

-Tim aka Spock
#4
11/02/2002 (5:31 am)
Thanks :) All I needed was to know the wheel was considered the zaxis. I already have working next and previous commands.