Game Development Community

Mouse Cursor

by Balmer Steve · in Torque Developer Network · 06/02/2010 (4:09 am) · 2 replies

Hi All


In My Project I have to display Mouse Cursor. If the Left Mouse Button is Pressed the camera should

turn(rotate).Did any one knows how to map the mouse in a way that yaw and pitch are on one of the buttons

How can i do that.

Thanks n advance


#1
06/11/2010 (12:08 am)
$LeftMouseDown =0;

function CheckLeftMouseDown()
{
if (Canvas.getMouseControl().getName() $= "PlayGui")
if (!$ForwardKeyDown)
$ScheduleMoveForward = schedule(120, 0, "moveForward", 1);
$LeftMouseDown = 1;
}


if (Canvas.getMouseControl().getName() $= "PlayGui")

The above code does not take effect.

Unable to find function getName()..

Whats wrong with it.