mirror of
https://github.com/Jusctsch5/ironsphererpg.git
synced 2026-07-16 08:55:31 +00:00
T2RPG: Initial commit of ironsphererpg directory
Taking everything obtained from http://ironsphererpg2.webs.com/ and dumping it in a git repo
This commit is contained in:
parent
fe9e2d05d1
commit
a5143b67f7
1730 changed files with 186051 additions and 0 deletions
28
scripts/joystickBind.cs
Normal file
28
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