GamepadButtons Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the button type.
This enumeration supports a bitwise combination of its member values.
public enum class GamepadButtons
/// [System.Flags]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class 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 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 |