共用方式為


GamePadButtons.A Property

Identifies whether the A button on the Xbox 360 Controller is pressed.

Namespace: Microsoft.Xna.Framework.Input
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public ButtonState A { get; }

Property Value

ButtonState.Pressed if the button is pressed; ButtonState.Released otherwise.

See Also

Reference

GamePadButtons Structure
GamePadButtons Members
Microsoft.Xna.Framework.Input Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista