Back

SetJoystickOptions

JS Py
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" );
}
from native import app

def OnStart():
    app.SetJoystickOptions( "ForwardKeys" )
Copy All       Run      
String: comma “,” separated: ForwardKeys