Back

SetJoystickOptions

Hello World

Set options for the connected joystick.

app.SetJoystickOptions( options )

The “forwardkeys” option allows the joystick key presses to pass onto the child controls of the main activity. (They are normally prevented from reaching child controls).

See Also: GetJoystickName, GetJoystickState

Example - ForwardKeys

function OnStart()
{
    app.SetJoystickOptions( "ForwardKeys" );
}
Copy All       Run      
string: comma “,” separated: ForwardKeys