Buttons Enumeration (Microsoft.Xna.Framework.Input)

Defines the buttons on gamepad.

Namespace: Microsoft.Xna.Framework.Input
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1018)
  • C#
  • VB
  • F#
[FlagsAttribute]
public enum Buttons

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The Buttons type exposes the following members.

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

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web