Microsoft.Xna.Framework.Input
Class GamePadThumbSticks

java.lang.Object
  extended by System.ValueType
      extended by Microsoft.Xna.Framework.Input.GamePadThumbSticks

public final class GamePadThumbSticks
extends ValueType

Structure that represents the position of left and right sticks (thumbsticks) on an Xbox 360 Controller.

Author:
Halofreak1990

Field Summary
 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 Summary
GamePadThumbSticks(Vector2 leftThumbstick, Vector2 rightThumbstick)
          Initializes a new instance of the GamePadThumbSticks class.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

Left

public final Vector2 Left
Returns the position of the left Xbox 360 Controller stick (thumbstick) as a 2D vector.


Right

public final Vector2 Right
Returns the position of the right Xbox 360 Controller stick (thumbstick) as a 2D vector.

Constructor Detail

GamePadThumbSticks

public GamePadThumbSticks(Vector2 leftThumbstick,
                          Vector2 rightThumbstick)
Initializes a new instance of the GamePadThumbSticks class.

Parameters:
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.
Method Detail

equals

public boolean equals(java.lang.Object obj)
Returns a value that indicates whether the current instance is equal to a specified object.

Overrides:
equals in class java.lang.Object
Parameters:
obj - Object with which to make the comparison.
Returns:
true if the current instance is equal to the specified object; false otherwise.

hashCode

public int hashCode()
Gets the hash code for this instance.

Overrides:
hashCode in class java.lang.Object
Returns:
Hash code for this object.

toString

public java.lang.String toString()
Retrieves a string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
String representation of this object.