public final class GamePadThumbSticks extends ValueType
Modifier and Type | Field and Description |
---|---|
Vector2 |
Left
Returns the position of the left Xbox 360 Controller stick (thumbstick) as a 2D vector.
|
Vector2 |
Right
Returns the position of the right Xbox 360 Controller stick (thumbstick) as a 2D vector.
|
Constructor and Description |
---|
GamePadThumbSticks(Vector2 leftThumbstick,
Vector2 rightThumbstick)
Initializes a new instance of the GamePadThumbSticks class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Returns a value that indicates whether the current instance is equal to a specified object.
|
int |
hashCode()
Gets the hash code for this instance.
|
java.lang.String |
toString()
Retrieves a string representation of this object.
|
public final Vector2 Left
public final Vector2 Right
public GamePadThumbSticks(Vector2 leftThumbstick, Vector2 rightThumbstick)
leftThumbstick
- Left stick value. Each axis is clamped between -1.0 and 1.0.rightThumbstick
- Right stick value. Each axis is clamped between -1.0 and 1.0.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object with which to make the comparison.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object