public final class GamePadButtons extends ValueType implements IEquatable<GamePadButtons>
Modifier and Type | Field and Description |
---|---|
ButtonState |
A
Identifies whether the A button on the Xbox 360 Controller is pressed.
|
ButtonState |
B
Identifies whether the B button on the Xbox 360 Controller is pressed.
|
ButtonState |
Back
Identifies whether the BACK button on the Xbox 360 Controller is pressed.
|
ButtonState |
LeftShoulder
Identifies whether the left shoulder (bumper) button on the Xbox 360 Controller is pressed.
|
ButtonState |
LeftStick
Identifies whether the left stick button on the Xbox 360 Controller is pressed (the stick is "clicked" in).
|
ButtonState |
RightShoulder
Identifies whether the right shoulder (bumper) button on the Xbox 360 Controller is pressed.
|
ButtonState |
RightStick
Identifies whether the right stick button on the Xbox 360 Controller is pressed (the stick is "clicked" in).
|
ButtonState |
Start
Identifies whether the START button on the Xbox 360 Controller is pressed.
|
ButtonState |
X
Identifies whether the X button on the Xbox 360 Controller is pressed.
|
ButtonState |
Y
Identifies whether the Y button on the Xbox 360 Controller is pressed.
|
Constructor and Description |
---|
GamePadButtons(java.util.EnumSet<Buttons> buttons)
Initializes a new instance of the GamePadButtons class, setting the specified buttons to pressed.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Equals(GamePadButtons 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 A
public final ButtonState B
public final ButtonState X
public final ButtonState Y
public final ButtonState LeftStick
public final ButtonState RightStick
public final ButtonState LeftShoulder
public final ButtonState RightShoulder
public final ButtonState Back
public final ButtonState Start
public GamePadButtons(java.util.EnumSet<Buttons> buttons)
buttons
- Buttons to initialize as pressed. Specify a single button, or combine multiple buttons using an EnumSet.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object with which to make the comparison.public boolean Equals(GamePadButtons other)
IEquatable
Equals
in interface IEquatable<GamePadButtons>
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