GamePadState Members
The following tables list the members exposed by the GamePadState type.
Public Properties
Name | Description | |
---|---|---|
Buttons | Returns a structure that identifies what buttons on the Xbox 360 Controller are pressed. | |
DPad | Returns a structure that identifies what directions of the directional pad on the Xbox 360 Controller are pressed. | |
IsConnected | Indicates whether the Xbox 360 Controller is connected. | |
PacketNumber | Gets the packet number associated with this state. | |
ThumbSticks | Returns a structure that indicates the position of the Xbox 360 Controller sticks (thumbsticks). | |
Triggers | Returns a structure that identifies the position of triggers on the Xbox 360 Controller. |
Public Methods
Name | Description | |
---|---|---|
Equals | Overloaded. Returns a value that indicates whether the current instance is equal to a specified object. | |
GetHashCode | Gets the hash code for this instance. | |
GetType | (Inherited from Object.) | |
op_Equality | Determines whether two GamePadState instances are equal. | |
op_Inequality | Determines whether two GamePadState instances are not equal. | |
ReferenceEquals | (Inherited from Object.) | |
ToString | Retrieves a string representation of this object. |
Protected Methods
Name | Description | |
---|---|---|
Finalize | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) |
See Also
Tasks
How to: Detect Whether a Controller Button Is Pressed
How to: Detect Whether a Controller Is Disconnected
Concepts
Reference
GamePadState Structure
Microsoft.Xna.Framework.Input Namespace