Joystick

class Joystick : System.Object

Allows interaction with joysticks. Unlike T:Microsoft.Xna.Framework.Input.GamePad the number of Buttons/Axes/DPads is not limited.

readonly bool IsSupported

Gets a value indicating whether the current platform supports reading raw joystick data.

Value:true if the current platform supports reading raw joystick data; otherwise, false.
public JoystickCapabilities GetCapabilities(int index)

Gets the capabilites of the joystick.

Parameters:
  • index (int) – Index of the joystick you want to access.
Returns:

The capabilites of the joystick.

public JoystickState GetState(int index)

Gets the current state of the joystick.

Parameters:
  • index (int) – Index of the joystick you want to access.
Returns:

The state of the joystick.