Joystick Class (Microsoft.Xna.Framework.Input)

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

Namespace: Microsoft.Xna.Framework.Input
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1018)
  • C#
  • VB
  • F#
public static class Joystick

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The Joystick type exposes the following members.

  Platforms Name Description
IsSupported Gets a value indicating whether the current platform supports reading raw joystick data. 
Top
  Platforms Name Description
GetCapabilities Gets the capabilites of the joystick. 
GetState(int) Gets the current state of the joystick. 
GetState(JoystickState, int) Gets the current state of the joystick by updating an existing JoystickState
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web