Dela via


GamepadButtons Enum

Definition

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

Name Value Description
None 0

No button.

Menu 1

Menu button.

View 2

View button.

A 4

A button.

B 8

B button.

X 16

X button.

Y 32

Y button.

DPadUp 64

D-pad up.

DPadDown 128

D-pad down.

DPadLeft 256

D-pad left.

DPadRight 512

D-pad right.

LeftShoulder 1024

Left bumper.

RightShoulder 2048

Right bumper.

LeftThumbstick 4096

Left stick.

RightThumbstick 8192

Right stick.

Paddle1 16384

The first paddle.

Paddle2 32768

The second paddle.

Paddle3 65536

The third paddle.

Paddle4 131072

The fourth paddle.

Remarks

Version history

Windows version SDK version Value added
1607 14393 Paddle1
1607 14393 Paddle2
1607 14393 Paddle3
1607 14393 Paddle4

Applies to