Mouse binding
by Sean H. · in Torque Game Engine · 07/08/2005 (6:58 pm) · 3 replies
What happens when a function is bound to the mouse in terms of the argument? button binds call the function with a 1 and then a 0. when a function is bound to the mouse what determines what the function argument will be when its called?
#2
movemap.bind(mouse, xaxis, yaw);
.
.
.
function yaw(%val)
what determines what %val will be in this case? it couldnt just be 1 or 0 because, for a mouse, direction has to be considered as well.
07/08/2005 (8:42 pm)
Yea i understand that much, what im talking about is a mouse bind:movemap.bind(mouse, xaxis, yaw);
.
.
.
function yaw(%val)
what determines what %val will be in this case? it couldnt just be 1 or 0 because, for a mouse, direction has to be considered as well.
Torque Owner Robert Pierce
I may have reversed those.
Robert