Sphere 2 GetJoystickName

From Spheriki

Jump to: navigation, search

Get the device name of a attached joystick.


Contents

Prototype

GetJoystickName(joy)


Parameters

  • joy: The joystick for which to return the device name.


Return Value

Returns a string containing the device name of the joystick.


Examples

if (GetNumJoysticks() > 0) {
  print("Joystick 0: " + GetJoystickName(0));
}

Prints the device name of the first attached joystick, if any.


See also

Personal tools