Dela via


GameControllerSwitchKind Enum

Definition

The type of switch on the game controller.

public enum class GameControllerSwitchKind
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
enum class GameControllerSwitchKind
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
public enum GameControllerSwitchKind
var value = Windows.Gaming.Input.GameControllerSwitchKind.twoWay
Public Enum GameControllerSwitchKind
Inheritance
GameControllerSwitchKind
Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Fields

Name Value Description
TwoWay 0

A two-way switch, which has Up, Down, and Center positions.

FourWay 1

A four-way switch, which has Up, Down, Left, Right, and Center positions.

EightWay 2

An eight-way switch, which has all positions in the GameControllerSwitchPosition enumeration.

Applies to

See also