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