Back

GetJoystickName

JS Py
Hello World

Returns the name of a conected joystick.

app.GetJoystickName( id ) → String

See Also: GetJoystickState

Example - Show Joystick name on id 0

function OnStart()
{
    name = app.GetJoystickName( 0 );
    app.Alert( name );
}
from native import app

def OnStart():
    name = app.GetJoystickName(0)
    app.Alert(name)
    Copy     Copy All       Run      
Number: integer