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