共用方式為


GamePadButtons.B Property

Identifies whether the B 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 B { 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