mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-07-11 14:34:51 +00:00
Initial commit
This commit is contained in:
parent
2211ed7650
commit
ebb3dc9cdd
10121 changed files with 801 additions and 4 deletions
28
docs/base/@vl2/scripts.vl2/scripts/joystickBind.cs
Normal file
28
docs/base/@vl2/scripts.vl2/scripts/joystickBind.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
//--------------------------------------------------------------------------
|
||||
//
|
||||
// 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 );
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue