GamePadButtons Members
The following tables list the members exposed by the GamePadButtons type.
Public Constructors
Name | Description | |
---|---|---|
GamePadButtons | Initializes a new instance of the GamePadButtons class, setting the specified buttons to pressed in. |
Public Properties
Name | Description | |
---|---|---|
A | Identifies if the A button on the Xbox 360 Controller is pressed. | |
B | Identifies if the B button on the Xbox 360 Controller is pressed. | |
Back | Identifies if the BACK button on the Xbox 360 Controller is pressed. | |
BigButton | Identifies if the BigButton button is pressed. | |
LeftShoulder | Identifies if the left shoulder (bumper) button on the Xbox 360 Controller is pressed. | |
LeftStick | Identifies if the left stick button on the Xbox 360 Controller is pressed (the stick is "clicked" in). | |
RightShoulder | Identifies if the right shoulder (bumper) button on the Xbox 360 Controller is pressed. | |
RightStick | Identifies if the right stick button on the Xbox 360 Controller is pressed (the stick is "clicked" in). | |
Start | Identifies if the START button on the Xbox 360 Controller is pressed. | |
X | Identifies if the X button on the Xbox 360 Controller is pressed. | |
Y | Identifies if the Y button on the Xbox 360 Controller is pressed. |
Public Methods
Name | Description | |
---|---|---|
Equals | Returns a value that indicates if the current instance is equal to a specified object. | |
GetHashCode | Gets the hash code for this instance. | |
GetType | (Inherited from Object.) | |
op_Equality | Indicates if the two GamePadButton objects are equal. | |
op_Inequality | Determines whether two GamePadButtons instances are not equal. | |
ToString | Retrieves a string representation of this object. |
Protected Methods
Name | Description | |
---|---|---|
Finalize | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) |
See Also
Tasks
Detecting Xbox 360 Controller Button Presses (Xbox 360, Windows)
Determining If an Xbox 360 Controller Is Disconnected (Xbox 360, Windows)
Concepts
Overview of User Input and Input Devices
Reference
GamePadButtons Structure
Microsoft.Xna.Framework.Input Namespace