Struct GamePadDPad
Describes the state of a GamePad directional pad.
Implements
Inherited Members
Namespace: OpenTK.Input
Assembly: OpenTK.dll
Syntax
public struct GamePadDPad : IEquatable<GamePadDPad>
Properties
Down
Gets the ButtonState for the down button.
Declaration
public readonly ButtonState Down { get; }
Property Value
Type | Description |
---|---|
ButtonState |
|
IsDown
Gets a value indicating whether the down button is pressed.
Declaration
public bool IsDown { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
IsLeft
Gets a value indicating whether the left button is pressed.
Declaration
public bool IsLeft { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
IsRight
Gets a value indicating whether the right button is pressed.
Declaration
public bool IsRight { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
IsUp
Gets a value indicating whether the up button is pressed.
Declaration
public bool IsUp { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
Left
Gets the ButtonState for the left button.
Declaration
public readonly ButtonState Left { get; }
Property Value
Type | Description |
---|---|
ButtonState |
|
Right
Gets the ButtonState for the right button.
Declaration
public readonly ButtonState Right { get; }
Property Value
Type | Description |
---|---|
ButtonState |
|
Up
Gets the ButtonState for the up button.
Declaration
public readonly ButtonState Up { get; }
Property Value
Type | Description |
---|---|
ButtonState |
|
Methods
Equals(GamePadDPad)
Determines whether the specified GamePadDPad is equal to the current GamePadDPad.
Declaration
public bool Equals(GamePadDPad other)
Parameters
Type | Name | Description |
---|---|---|
GamePadDPad | other | The GamePadDPad to compare with the current GamePadDPad. |
Returns
Type | Description |
---|---|
Boolean |
|
Equals(Object)
Determines whether the specified Object is equal to the current GamePadDPad.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The Object to compare with the current GamePadDPad. |
Returns
Type | Description |
---|---|
Boolean |
|
Overrides
GetHashCode()
Serves as a hash function for a GamePadDPad 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 GamePadDPad.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A String that represents the current GamePadDPad. |
Overrides
Operators
Equality(GamePadDPad, GamePadDPad)
Declaration
public static bool operator ==(GamePadDPad left, GamePadDPad right)
Parameters
Type | Name | Description |
---|---|---|
GamePadDPad | left | A GamePadDPad instance to test for equality. |
GamePadDPad | right | A GamePadDPad instance to test for equality. |
Returns
Type | Description |
---|---|
Boolean |
Inequality(GamePadDPad, GamePadDPad)
Declaration
public static bool operator !=(GamePadDPad left, GamePadDPad right)
Parameters
Type | Name | Description |
---|---|---|
GamePadDPad | left | A GamePadDPad instance to test for inequality. |
GamePadDPad | right | A GamePadDPad instance to test for inequality. |
Returns
Type | Description |
---|---|
Boolean |