JoystickState Structure (Microsoft.Xna.Framework.Input)

Describes current joystick state.

Namespace: Microsoft.Xna.Framework.Input
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1018)
  • C#
  • VB
  • F#
[StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = -1, Size = -1)]
public struct JoystickState

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The JoystickState type exposes the following members.

  Platforms Name Description
Axes Gets the joystick axis values. 
Buttons Gets the joystick button values. 
Hats Gets the joystick hat values. 
IsConnected Gets a value indicating whether the joystick is connected. 
Top
  Platforms Name Description
Equals Determines whether the specified System.Object is equal to the current JoystickState. (Overrides ValueType.Equals().)
GetHashCode Serves as a hash function for a JoystickState object. (Overrides ValueType.GetHashCode().)
ToString Returns a System.String that represents the current JoystickState. (Overrides ValueType.ToString().)
Top
  Platforms Name Description
Equality Determines whether a specified instance of JoystickState is equal to another specified JoystickState
Inequality Determines whether a specified instance of JoystickState is not equal to another specified JoystickState
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web