GamePadButtons Members

The following tables list the members exposed by the GamePadButtons type.

Public Constructors

Name Description
Public Method GamePadButtons Initializes a new instance of the GamePadButtons class, setting the specified buttons to pressed in.

Public Properties

Name Description
Public Property A Identifies if the A button on the Xbox 360 Controller is pressed.
Public Property B Identifies if the B button on the Xbox 360 Controller is pressed.
Public Property Back Identifies if the BACK button on the Xbox 360 Controller is pressed.
Public Property BigButton Identifies if the BigButton button is pressed.
Public Property LeftShoulder Identifies if the left shoulder (bumper) button on the Xbox 360 Controller is pressed.
Public Property LeftStick Identifies if the left stick button on the Xbox 360 Controller is pressed (the stick is "clicked" in).
Public Property RightShoulder Identifies if the right shoulder (bumper) button on the Xbox 360 Controller is pressed.
Public Property RightStick Identifies if the right stick button on the Xbox 360 Controller is pressed (the stick is "clicked" in).
Public Property Start Identifies if the START button on the Xbox 360 Controller is pressed.
Public Property X Identifies if the X button on the Xbox 360 Controller is pressed.
Public Property Y Identifies if the Y button on the Xbox 360 Controller is pressed.

Public Methods

Name Description
Public Method Equals Returns a value that indicates if the current instance is equal to a specified object.
Public Method GetHashCode Gets the hash code for this instance.
Public Method GetType (Inherited from Object.)
Public Method Static op_Equality Indicates if the two GamePadButton objects are equal.
Public Method Static op_Inequality Determines whether two GamePadButtons instances are not equal.
Public Method ToString Retrieves a string representation of this object.

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method 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