TorqueScript Reference
|
*/ // group VectorMathFunctions
/*!
String getJoystickAxes | ( | instance | ) |
Use the getJoystickAxes function to get the current axes position (x and y ) of any intance of a joystick.
instance | A non-negative number value selecting a specific joystick instance attached to this computer. |
Integer getJoystickCount | ( | ) |
Returns the total number of joysticks connected, both XInput and other.
Boolean isJoystickDetected | ( | ) |
addtogroup WindowsPlatform Windows Platform
Use the isJoystickDetected function to determine if one or more joysticks are connected to the system. This doesn't tell us how many joysticks there are, just that there are joysticks. It is our job to find out how many and to attach them.