JoystickHat

struct JoystickHat : System.ValueType

Describes joystick hat state.

readonly ButtonState Down

Gets if joysticks hat “down” is pressed.

Value:F:Microsoft.Xna.Framework.Input.ButtonState.Pressed if the button is pressed otherwise, F:Microsoft.Xna.Framework.Input.ButtonState.Released.
readonly ButtonState Left

Gets if joysticks hat “left” is pressed.

Value:F:Microsoft.Xna.Framework.Input.ButtonState.Pressed if the button is pressed otherwise, F:Microsoft.Xna.Framework.Input.ButtonState.Released.
readonly ButtonState Right

Gets if joysticks hat “right” is pressed.

Value:F:Microsoft.Xna.Framework.Input.ButtonState.Pressed if the button is pressed otherwise, F:Microsoft.Xna.Framework.Input.ButtonState.Released.
readonly ButtonState Up

Gets if joysticks hat “up” is pressed.

Value:F:Microsoft.Xna.Framework.Input.ButtonState.Pressed if the button is pressed otherwise, F:Microsoft.Xna.Framework.Input.ButtonState.Released.
void set_Down(ButtonState value)
Parameters:
  • value (Microsoft.Xna.Framework.Input.ButtonState) –
void set_Left(ButtonState value)
Parameters:
  • value (Microsoft.Xna.Framework.Input.ButtonState) –
void set_Right(ButtonState value)
Parameters:
  • value (Microsoft.Xna.Framework.Input.ButtonState) –
void set_Up(ButtonState value)
Parameters:
  • value (Microsoft.Xna.Framework.Input.ButtonState) –
bool op_Equality(JoystickHat left, JoystickHat right)

Determines whether a specified instance of T:Microsoft.Xna.Framework.Input.JoystickHat is equal to another specified T:Microsoft.Xna.Framework.Input.JoystickHat.

Parameters:
  • left (Microsoft.Xna.Framework.Input.JoystickHat) – The first T:Microsoft.Xna.Framework.Input.JoystickHat to compare.
  • right (Microsoft.Xna.Framework.Input.JoystickHat) – The second T:Microsoft.Xna.Framework.Input.JoystickHat to compare.
Returns:

true if left and right are equal; otherwise, false.

bool op_Inequality(JoystickHat left, JoystickHat right)

Determines whether a specified instance of T:Microsoft.Xna.Framework.Input.JoystickHat is not equal to another specified T:Microsoft.Xna.Framework.Input.JoystickHat.

Parameters:
  • left (Microsoft.Xna.Framework.Input.JoystickHat) – The first T:Microsoft.Xna.Framework.Input.JoystickHat to compare.
  • right (Microsoft.Xna.Framework.Input.JoystickHat) – The second T:Microsoft.Xna.Framework.Input.JoystickHat to compare.
Returns:

true if left and right are not equal; otherwise, false.

bool Equals(System.Object obj)

Determines whether the specified T:System.Object is equal to the current T:Microsoft.Xna.Framework.Input.JoystickHat.

Parameters:
  • obj (System.Object) – The T:System.Object to compare with the current T:Microsoft.Xna.Framework.Input.JoystickHat.
Returns:
true if the specified T:System.Object is equal to the current

T:Microsoft.Xna.Framework.Input.JoystickHat; otherwise, false.

int GetHashCode()

Serves as a hash function for a T:Microsoft.Xna.Framework.Input.JoystickHat object.

Returns:
A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a

hash table.

string ToString()

Returns a T:System.String that represents the current T:Microsoft.Xna.Framework.Input.JoystickHat in a format of 0000 where each number represents a boolean value of each respecting object property: Left, Up, Right, Down.

Returns:A T:System.String that represents the current T:Microsoft.Xna.Framework.Input.JoystickHat.