Struct GamePadThumbSticks
A struct that represents the current stick (thumbstick) states for the controller.
public struct GamePadThumbSticks
- Inherited Members
Constructors
GamePadThumbSticks(Vector2, Vector2)
public GamePadThumbSticks(Vector2 leftPosition, Vector2 rightPosition)
Parameters
Properties
Left
Gets a value indicating the position of the left stick (thumbstick).
public Vector2 Left { get; }
Property Value
Right
Gets a value indicating the position of the right stick (thumbstick).
public Vector2 Right { get; }
Property Value
Methods
Equals(object)
Returns a value indicating whether this instance is equal to a specified object.
public override bool Equals(object obj)
Parameters
obj
objectAn object to compare to this instance.
Returns
- bool
true if
obj
is a GamePadThumbSticks and has the same value as this instance; otherwise, false.
GetHashCode()
Serves as a hash function for a GamePadThumbSticks object.
public override int GetHashCode()
Returns
- int
A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a hash table.
ToString()
Returns a string that represents the current GamePadThumbSticks.
public override string ToString()
Returns
- string
A string that represents the current GamePadThumbSticks.
Operators
operator ==(GamePadThumbSticks, GamePadThumbSticks)
Determines whether two specified instances of GamePadThumbSticks are equal.
public static bool operator ==(GamePadThumbSticks left, GamePadThumbSticks right)
Parameters
left
GamePadThumbSticksThe first object to compare.
right
GamePadThumbSticksThe second object to compare.
Returns
- bool
true if
left
andright
are equal; otherwise, false.
operator !=(GamePadThumbSticks, GamePadThumbSticks)
Determines whether two specified instances of GamePadThumbSticks are not equal.
public static bool operator !=(GamePadThumbSticks left, GamePadThumbSticks right)
Parameters
left
GamePadThumbSticksThe first object to compare.
right
GamePadThumbSticksThe second object to compare.
Returns
- bool
true if
left
andright
are not equal; otherwise, false.