Buttons Enumeration

Enumerates input device buttons.

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

Syntax

[FlagsAttribute]
public enum Buttons

Members

  Member name Description
A A button
B B button
Back BACK button
BigButton Big button
DPadDown Directional pad up
DPadLeft Directional pad left
DPadRight Directional pad right
DPadUp Directional pad down
LeftShoulder Left bumper (shoulder) button
LeftStick Left stick button (pressing the left stick)
LeftThumbstickDown Left stick is toward down
LeftThumbstickLeft Left stick is toward the left
LeftThumbstickRight Left stick is toward the right
LeftThumbstickUp Left stick is toward up
LeftTrigger Left trigger
RightShoulder Right bumper (shoulder) button
RightStick Right stick button (pressing the right stick)
RightThumbstickDown Right stick is toward down
RightThumbstickLeft Right stick is toward the left
RightThumbstickRight Right stick is toward the right
RightThumbstickUp Right stick is toward up
RightTrigger Right trigger
Start START button
X X button
Y Y button

See Also

Reference

Microsoft.Xna.Framework.Input Namespace
GamePadState.IsButtonDown Method
GamePadState.IsButtonUp Method

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone