Struct JoystickHatState
Describes the state of a joystick hat.
Implements
Inherited Members
Namespace: OpenTK.Input
Assembly: cs.temp.dll.dll
Syntax
public struct JoystickHatState : IEquatable<JoystickHatState>
Properties
IsDown
Gets a System.Boolean indicating whether this hat lies in the bottom hemicircle.
Declaration
public bool IsDown { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsLeft
Gets a System.Boolean indicating whether this hat lies in the left hemicircle.
Declaration
public bool IsLeft { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsRight
Gets a System.Boolean indicating whether this hat lies in the right hemicircle.
Declaration
public bool IsRight { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsUp
Gets a System.Boolean indicating whether this hat lies in the top hemicircle.
Declaration
public bool IsUp { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Position
Gets a HatPosition value indicating the position of this hat.
Declaration
public HatPosition Position { get; }
Property Value
Type | Description |
---|---|
HatPosition | The position. |
Methods
Equals(JoystickHatState)
Determines whether the specified JoystickHatState is equal to the current JoystickHatState.
Declaration
public bool Equals(JoystickHatState other)
Parameters
Type | Name | Description |
---|---|---|
JoystickHatState | other | The JoystickHatState to compare with the current JoystickHatState. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Equals(Object)
Determines whether the specified System.Object is equal to the current JoystickHatState.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with the current JoystickHatState. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
GetHashCode()
Serves as a hash function for a JoystickHatState object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a hash table. |
Overrides
ToString()
Returns a System.String that represents the current JoystickHatState.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current JoystickHatState. |