Microsoft.Xna.Framework.Input
Class GamePadDPad

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

public final class GamePadDPad
extends ValueType

Identifies which directions on the directional pad of an Xbox 360 Controller are being pressed.

Author:
Halofreak1990

Field Summary
 ButtonState Down
          Identifies whether the Down direction on the Xbox 360 Controller directional pad is pressed.
 ButtonState Left
          Identifies whether the Left direction on the Xbox 360 Controller directional pad is pressed.
 ButtonState Right
          Identifies whether the Right direction on the Xbox 360 Controller directional pad is pressed.
 ButtonState Up
          Identifies whether the Up direction on the Xbox 360 Controller directional pad is pressed.
 
Constructor Summary
GamePadDPad(ButtonState upValue, ButtonState downValue, ButtonState leftValue, ButtonState rightValue)
          Initializes a new instance of the GamePadDPad 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

Up

public final ButtonState Up
Identifies whether the Up direction on the Xbox 360 Controller directional pad is pressed.


Right

public final ButtonState Right
Identifies whether the Right direction on the Xbox 360 Controller directional pad is pressed.


Down

public final ButtonState Down
Identifies whether the Down direction on the Xbox 360 Controller directional pad is pressed.


Left

public final ButtonState Left
Identifies whether the Left direction on the Xbox 360 Controller directional pad is pressed.

Constructor Detail

GamePadDPad

public GamePadDPad(ButtonState upValue,
                   ButtonState downValue,
                   ButtonState leftValue,
                   ButtonState rightValue)
Initializes a new instance of the GamePadDPad class.

Parameters:
upValue - Directional pad up button state.
downValue - Directional pad down button state.
leftValue - Directional pad left button state.
rightValue - Directional pad right button state.
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.