GamepadButtons Enum
Definition
Specifies the button type.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
public enum class GamepadButtons
/// [System.Flags]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum GamepadButtons
[System.Flags]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum GamepadButtons
var value = Windows.Gaming.Input.GamepadButtons.none
Public Enum GamepadButtons
- Inheritance
-
GamepadButtons
- Attributes
Windows 10 requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Fields
A | 4 | A button. |
B | 8 | B button. |
DPadDown | 128 | D-pad down. |
DPadLeft | 256 | D-pad left. |
DPadRight | 512 | D-pad right. |
DPadUp | 64 | D-pad up. |
LeftShoulder | 1024 | Left bumper. |
LeftThumbstick | 4096 | Left stick. |
Menu | 1 | Menu button. |
None | 0 | No button. |
Paddle1 | 16384 | The first paddle. |
Paddle2 | 32768 | The second paddle. |
Paddle3 | 65536 | The third paddle. |
Paddle4 | 131072 | The fourth paddle. |
RightShoulder | 2048 | Right bumper. |
RightThumbstick | 8192 | Right stick. |
View | 2 | View button. |
X | 16 | X button. |
Y | 32 | Y button. |
Remarks
Version history
Windows version | SDK version | Value added |
---|---|---|
1607 | 14393 | Paddle1 |
1607 | 14393 | Paddle2 |
1607 | 14393 | Paddle3 |
1607 | 14393 | Paddle4 |