GamePadButtons Members

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

Public Properties

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

Public Methods

Name Description
Public Method Equals Overloaded. Returns a value that indicates whether 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 Determines whether two GamePadButtons instances are equal.
Public Method Static op_Inequality Determines whether two GamePadButtons instances are not equal.
Public Method ReferenceEquals (Inherited from Object.)
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

How to: Detect Whether a Controller Button Is Pressed
How to: Detect Whether a Controller Is Disconnected

Concepts

Input Overview

Reference

GamePadButtons Structure
Microsoft.Xna.Framework.Input Namespace