public final class GamePadDPad extends ValueType implements IEquatable<GamePadDPad>
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
GamePadDPad(ButtonState upValue,
ButtonState downValue,
ButtonState leftValue,
ButtonState rightValue)
Initializes a new instance of the GamePadDPad class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Equals(GamePadDPad other)
Indicates whether the current object is equal to another object of the same type.
|
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 ButtonState Up
public final ButtonState Right
public final ButtonState Down
public final ButtonState Left
public GamePadDPad(ButtonState upValue, ButtonState downValue, ButtonState leftValue, ButtonState rightValue)
upValue
- Directional pad up button state.downValue
- Directional pad down button state.leftValue
- Directional pad left button state.rightValue
- Directional pad right button state.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object with which to make the comparison.public boolean Equals(GamePadDPad other)
IEquatable
Equals
in interface IEquatable<GamePadDPad>
other
- An object to compare with this object.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object