Game Development Community

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?

#1
07/08/2005 (8:15 pm)
With all keybinds, when the key/button is hit, it sends a value greater than 1 (I think), when it is released, it sends of value of 0.

I may have reversed those.

Robert
#2
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.
#3
07/09/2005 (2:12 pm)
Function yaw(%val)
{
echo(%val);
}