Sphere 2 GetJoystickName
From Spheriki
Get the device name of a attached joystick.
Contents |
Prototype
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.