The Open Toolkit library  1.1
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Attributes | Properties | List of all members
OpenTK.Input.JoystickHatState Struct Reference

Describes the state of a joystick hat. More...

Public Attributes

HatPosition position
 

Properties

HatPosition Position [get]
 Gets a HatPosition value indicating the position of this hat. More...
 
bool IsUp [get]
 Gets a System.Boolean indicating whether this hat lies in the top hemicircle. More...
 
bool IsDown [get]
 Gets a System.Boolean indicating whether this hat lies in the bottom hemicircle. More...
 
bool IsLeft [get]
 Gets a System.Boolean indicating whether this hat lies in the left hemicircle. More...
 
bool IsRight [get]
 Gets a System.Boolean indicating whether this hat lies in the right hemicircle. More...
 

Detailed Description

Describes the state of a joystick hat.

Property Documentation

bool OpenTK.Input.JoystickHatState.IsDown
get

Gets a System.Boolean indicating whether this hat lies in the bottom hemicircle.

true if this hat lies in the bottom hemicircle; otherwise, false.

bool OpenTK.Input.JoystickHatState.IsLeft
get

Gets a System.Boolean indicating whether this hat lies in the left hemicircle.

true if this hat lies in the left hemicircle; otherwise, false.

bool OpenTK.Input.JoystickHatState.IsRight
get

Gets a System.Boolean indicating whether this hat lies in the right hemicircle.

true if this hat lies in the right hemicircle; otherwise, false.

bool OpenTK.Input.JoystickHatState.IsUp
get

Gets a System.Boolean indicating whether this hat lies in the top hemicircle.

true if this hat lies in the top hemicircle; otherwise, false.

HatPosition OpenTK.Input.JoystickHatState.Position
get

Gets a HatPosition value indicating the position of this hat.

The position.