共用方式為


GamePad Members

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

Public Methods

Name Description
Public Method Equals (Inherited from Object.)
Public Method Static GetCapabilities Retrieves the capabilities of an Xbox 360 Controller.
Public Method GetHashCode (Inherited from Object.)
Public Method Static GetState Overloaded. Gets the current state of an Xbox 360 Controller, optionally specifying a dead zone processing method for the analog sticks.
Public Method GetType (Inherited from Object.)
Public Method ReferenceEquals (Inherited from Object.)
Public Method Static SetVibration Sets the vibration motor speeds on an Xbox 360 Controller.
Public Method ToString (Inherited from 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

GamePad Class
Microsoft.Xna.Framework.Input Namespace