zaxis MouseWheel input?
by Shawn Kennedy · in Torque 3D Professional · 03/18/2011 (2:41 pm) · 2 replies
I'm trying to get mousewheel input in my project (T3D1.0) and I can't seem to get it working. I thought to base it off of the mouseWheelWeaponCycle function that Torque had set up in their example projects, using the following syntax:
moveMap.bind(mouse0, "zaxis", mouseWheelWeaponCycle);
so I tried:
moveMap.bind(mouse0, "zaxis", myFunc);
But it seems that this isn't even the correct syntax, as it doesn't call mouseWheelWeaponCycle or myFunc.
I've tried a number of variations too...
mouse
mouse0
"zaxis"
zaxis
etc...
Any idea what I may be doing wrong here?
Thanks.
moveMap.bind(mouse0, "zaxis", mouseWheelWeaponCycle);
so I tried:
moveMap.bind(mouse0, "zaxis", myFunc);
But it seems that this isn't even the correct syntax, as it doesn't call mouseWheelWeaponCycle or myFunc.
I've tried a number of variations too...
mouse
mouse0
"zaxis"
zaxis
etc...
Any idea what I may be doing wrong here?
Thanks.
#2
mousewheel vertical is zaxis, horiz is rzaxis (defined in windowInputGenerator.cpp). It appears your original syntax is correct above, assuming the mouse is mapped to mouse0.
Sounds like something (like a gui object possibly) is intercepting the call along the way.
03/19/2011 (7:04 am)
the mapping is not up to the mouse. the events are passed in by the platform and mapped by t3d.mousewheel vertical is zaxis, horiz is rzaxis (defined in windowInputGenerator.cpp). It appears your original syntax is correct above, assuming the mouse is mapped to mouse0.
Sounds like something (like a gui object possibly) is intercepting the call along the way.
Torque 3D Owner Bryan Sawler
muteki corporation
Try those?