GameInputSwitchKind

Enumerates types of switches supported by an input device.

Syntax

typedef enum GameInputSwitchKind  
{  
    GameInputUnknownSwitchKind = -1,  
    GameInput2WaySwitch = 0,  
    GameInput4WaySwitch = 1,  
    GameInput8WaySwitch = 2  
} GameInputSwitchKind  

Constants

Constant Description
GameInputUnknownSwitchKind Unknown switch type.
GameInput2WaySwitch Two-way switch.
GameInput4WaySwitch Four-way switch.
GameInput8WaySwitch Eight-way switch.

Remarks

This enumeration is used in the GameInputControllerSwitchInfo and GameInputFlightStickInfo structures. For a flight stick, the values usually apply to the hat switch.

For intermediate and advanced use cases of the GameInput API, see Advanced GameInput topics.

Requirements

Header: GameInput.h

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

Overview of GameInput
GameInput