GamePadDPad¶
-
struct
GamePadDPad
: System.ValueType -
readonly ButtonState
Down
Gets a value indicating wethever down is pressed on the directional pad.
Value: F:Microsoft.Xna.Framework.Input.ButtonState.Pressed if the down button is pressed; otherwise, F:Microsoft.Xna.Framework.Input.ButtonState.Released.
-
readonly ButtonState
Left
Gets a value indicating wethever left is pressed on the directional pad.
Value: F:Microsoft.Xna.Framework.Input.ButtonState.Pressed if the left button is pressed; otherwise, F:Microsoft.Xna.Framework.Input.ButtonState.Released.
-
readonly ButtonState
Right
Gets a value indicating wethever right is pressed on the directional pad.
Value: F:Microsoft.Xna.Framework.Input.ButtonState.Pressed if the right button is pressed; otherwise, F:Microsoft.Xna.Framework.Input.ButtonState.Released.
-
readonly ButtonState
Up
Gets a value indicating wethever up is pressed on the directional pad.
Value: F:Microsoft.Xna.Framework.Input.ButtonState.Pressed if the up button is pressed; otherwise, F:Microsoft.Xna.Framework.Input.ButtonState.Released.
-
bool
op_Equality
(GamePadDPad left, GamePadDPad right) Determines whether two specified instances of T:Microsoft.Xna.Framework.Input.GamePadDPad are equal.
Parameters: - left (Microsoft.Xna.Framework.Input.GamePadDPad) – The first object to compare.
- right (Microsoft.Xna.Framework.Input.GamePadDPad) – The second object to compare.
Returns: true if and are equal; otherwise, false.
-
bool
op_Inequality
(GamePadDPad left, GamePadDPad right) Determines whether two specified instances of T:Microsoft.Xna.Framework.Input.GamePadDPad are not equal.
Parameters: - left (Microsoft.Xna.Framework.Input.GamePadDPad) – The first object to compare.
- right (Microsoft.Xna.Framework.Input.GamePadDPad) – 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.GamePadDPad and has the same value as this instance; otherwise, false.
-
int
GetHashCode
() Serves as a hash function for a T:Microsoft.Xna.Framework.Input.GamePadDPad 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.GamePadDPad in a format of 0000 where each number represents a boolean value of each respecting object property: Left, Up, Right, Down.
Returns: A T:System.String that represents the current T:Microsoft.Xna.Framework.Input.GamePadDPad.
-
readonly ButtonState