IsJoystickConnected
IsJoystickConnected

Checks if the given joystick is currently available.

bConnected = myPlayer.IsJoystickConnected( Number )
bConnected = myPlayer.IsJoystickConnected( )

Return value
TRUE if the joystick is connected, otherwise FALSE.

Parameters
  • Number
    The number of the joystick to test. If ommited and the player is set to MODE_JOYSTICK, this checks the player's input joystick.
Comments

This function is used automatically by JAM to test if a player's controller is still connected. If it isn't, JAM will automatically offer to change the input device.

See also
Player:SetDevice



JAM © 2005 no one in partiular
Project started by David Evans in 2005