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