GamePadButtons¶
-
struct
GamePadButtons: System.ValueType A struct that represents the current button states for the controller.
-
readonly ButtonState
A Gets a value indicating if the button A is pressed.
Value: F:Microsoft.Xna.Framework.Input.ButtonState.Pressed if the button A is pressed; otherwise, F:Microsoft.Xna.Framework.Input.ButtonState.Released.
-
readonly ButtonState
B Gets a value indicating if the button B is pressed.
Value: F:Microsoft.Xna.Framework.Input.ButtonState.Pressed if the button B is pressed; otherwise, F:Microsoft.Xna.Framework.Input.ButtonState.Released.
-
readonly ButtonState
Back Gets a value indicating if the button Back is pressed.
Value: F:Microsoft.Xna.Framework.Input.ButtonState.Pressed if the button Back is pressed; otherwise, F:Microsoft.Xna.Framework.Input.ButtonState.Released.
-
readonly ButtonState
X Gets a value indicating if the button X is pressed.
Value: F:Microsoft.Xna.Framework.Input.ButtonState.Pressed if the button X is pressed; otherwise, F:Microsoft.Xna.Framework.Input.ButtonState.Released.
-
readonly ButtonState
Y Gets a value indicating if the button Y is pressed.
Value: F:Microsoft.Xna.Framework.Input.ButtonState.Pressed if the button Y is pressed; otherwise, F:Microsoft.Xna.Framework.Input.ButtonState.Released.
-
readonly ButtonState
Start Gets a value indicating if the button Start is pressed.
Value: F:Microsoft.Xna.Framework.Input.ButtonState.Pressed if the button Start is pressed; otherwise, F:Microsoft.Xna.Framework.Input.ButtonState.Released.
-
readonly ButtonState
LeftShoulder Gets a value indicating if the left shoulder button is pressed.
Value: F:Microsoft.Xna.Framework.Input.ButtonState.Pressed if the left shoulder button is pressed; otherwise, F:Microsoft.Xna.Framework.Input.ButtonState.Released.
-
readonly ButtonState
LeftStick Gets a value indicating if the left stick button is pressed.
Value: F:Microsoft.Xna.Framework.Input.ButtonState.Pressed if the left stick button is pressed; otherwise, F:Microsoft.Xna.Framework.Input.ButtonState.Released.
-
readonly ButtonState
RightShoulder Gets a value indicating if the right shoulder button is pressed.
Value: F:Microsoft.Xna.Framework.Input.ButtonState.Pressed if the right shoulder button is pressed; otherwise, F:Microsoft.Xna.Framework.Input.ButtonState.Released.
-
readonly ButtonState
RightStick Gets a value indicating if the right stick button is pressed.
Value: F:Microsoft.Xna.Framework.Input.ButtonState.Pressed if the right stick button is pressed; otherwise, F:Microsoft.Xna.Framework.Input.ButtonState.Released.
-
readonly ButtonState
BigButton Gets a value indicating if the guide button is pressed.
Value: F:Microsoft.Xna.Framework.Input.ButtonState.Pressed if the guide button is pressed; otherwise, F:Microsoft.Xna.Framework.Input.ButtonState.Released.
-
bool
op_Equality(GamePadButtons left, GamePadButtons right) Determines whether two specified instances of T:Microsoft.Xna.Framework.Input.GamePadButtons are equal.
Parameters: - left (Microsoft.Xna.Framework.Input.GamePadButtons) – The first object to compare.
- right (Microsoft.Xna.Framework.Input.GamePadButtons) – The second object to compare.
Returns: true if and are equal; otherwise, false.
-
bool
op_Inequality(GamePadButtons left, GamePadButtons right) Determines whether two specified instances of T:Microsoft.Xna.Framework.Input.GamePadButtons are not equal.
Parameters: - left (Microsoft.Xna.Framework.Input.GamePadButtons) – The first object to compare.
- right (Microsoft.Xna.Framework.Input.GamePadButtons) – The second object to compare.
Returns: true if and are not equal; otherwise, false.
-
bool
Equals(System.Object obj) Returns a value indicating whether this instance is equal to a specified object.
Parameters: - obj (System.Object) – An object to compare to this instance.
Returns: true if is a T:Microsoft.Xna.Framework.Input.GamePadButtons and has the same value as this instance; otherwise, false.
-
int
GetHashCode() Serves as a hash function for a T:Microsoft.Xna.Framework.Input.GamePadButtons object.
Returns: - A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a
hash table.
-
string
ToString() Returns a T:System.String that represents the current T:Microsoft.Xna.Framework.Input.GamePadButtons.
Returns: A T:System.String that represents the current T:Microsoft.Xna.Framework.Input.GamePadButtons.
-
readonly ButtonState