ironsphererpg/scripts/joystickBind.cs
Jusctsch5 a5143b67f7 T2RPG: Initial commit of ironsphererpg directory
Taking everything obtained from http://ironsphererpg2.webs.com/ and dumping it in a git repo
2015-01-18 21:06:06 -06:00

28 lines
588 B
C#

//--------------------------------------------------------------------------
//
// joystickBind.cs
//
//--------------------------------------------------------------------------
// Joystick functions:
function joystickMoveX(%val)
{
$mvLeftAction = ( %val < 0.0 );
$mvRightAction = ( %val > 0.0 );
}
function joystickMoveY(%val)
{
$mvForwardAction = ( %val < 0.0 );
$mvBackwardAction = ( %val > 0.0 );
}
function joyYaw(%val)
{
$mvYaw += getMouseAdjustAmount( %val );
}
function joyPitch(%val)
{
$mvPitch += getMouseAdjustAmount( %val );
}