CursorOn, but mouse right button won't work?
by Jack Fang · in Torque Game Engine · 01/03/2007 (9:33 pm) · 1 replies
I wanna cursor shows up, and mouse right click to free look also hide cursor.
released button, cursor on.
but, after cursor on, right button won't work anymore! why?
released button, cursor on.
but, after cursor on, right button won't work anymore! why?
//moveMap.bind( mouse, xaxis, yaw );
//moveMap.bind( mouse, yaxis, pitch );
moveMap.bind( mouse, "button1", FreeLook);
CursorOn();
function FreeLook(%val)
{
if (%val)
{
echo("pressed.......");
moveMap.bind( mouse, xaxis, yaw );
moveMap.bind( mouse, yaxis, pitch );
CursorOff();
}
else
{
echo("released.....");
moveMap.bind( mouse, xaxis, "");
moveMap.bind( mouse, yaxis, "");
CursorOn();
}
}
Torque Owner Jack Fang
www.garagegames.com/mg/forums/result.thread.php?qt=21385