Back

GetJoystickName

GetJoystickName returns the name of a HID Joystick or Gamepad. For example, an Xbox 360 controller connected to the device via an OTG cable. This method can get the name of multiple HID controllers currently connected to the device. Pass 0 to GetJoystickName for the first controller, 1 for the second, etc.

app.GetJoystickName( id ) -> unknown

Example - Example



function OnStart()
{
    name = app.GetJoystickName( 0 );
    app.ShowPopup( name );
}
    Copy     Copy All       Run      

unknown