JoystickHat Structure (Microsoft.Xna.Framework.Input)

Describes joystick hat state.

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

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The JoystickHat type exposes the following members.

  Platforms Name Description
Down Gets if joysticks hat "down" is pressed. 
Left Gets if joysticks hat "left" is pressed. 
Right Gets if joysticks hat "right" is pressed. 
Up Gets if joysticks hat "up" is pressed. 
Top
  Platforms Name Description
Equals Determines whether the specified System.Object is equal to the current JoystickHat. (Overrides ValueType.Equals().)
GetHashCode Serves as a hash function for a JoystickHat object. (Overrides ValueType.GetHashCode().)
ToString Returns a System.String that represents the current JoystickHat in a format of 0000 where each number represents a boolean value of each respecting object property: Left, Up, Right, Down. (Overrides ValueType.ToString().)
Top
  Platforms Name Description
Equality Determines whether a specified instance of JoystickHat is equal to another specified JoystickHat
Inequality Determines whether a specified instance of JoystickHat is not equal to another specified JoystickHat
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web