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) –