次の方法で共有


GamePadState.Buttons Property

Returns a structure that identifies what buttons on the Xbox 360 Controller are pressed.

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

Syntax

public GamePadButtons Buttons { get; }

Property Value

A structure that identifies buttons pressed on the controller.

See Also

Tasks

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

Concepts

Input Overview

Reference

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

Platforms

Xbox 360, Windows XP SP2, Windows Vista