> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GameInputSwitchPosition

> GameInputSwitchPosition

# GameInputSwitchPosition

Enumerates positions of a switch on an input device.

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
enum GameInputSwitchPosition
{
    GameInputSwitchCenter    = 0,
    GameInputSwitchUp        = 1,
    GameInputSwitchUpRight   = 2,
    GameInputSwitchRight     = 3,
    GameInputSwitchDownRight = 4,
    GameInputSwitchDown      = 5,
    GameInputSwitchDownLeft  = 6,
    GameInputSwitchLeft      = 7,
    GameInputSwitchUpLeft    = 8
};
```

<a id="constantsSection" />

## Constants

| Constant                 | Description                        |
| ------------------------ | ---------------------------------- |
| GameInputSwitchCenter    | Switch in the center position.     |
| GameInputSwitchUp        | Switch in the up position.         |
| GameInputSwitchUpRight   | Switch in the up-right position.   |
| GameInputSwitchRight     | Switch in the right position.      |
| GameInputSwitchDownRight | Switch in the down-right position. |
| GameInputSwitchDown      | Switch in the down position.       |
| GameInputSwitchDownLeft  | Switch in the down-left position.  |
| GameInputSwitchLeft      | Switch in the left position.       |
| GameInputSwitchUpLeft    | Switch in the up-left position.    |

<a id="remarksSection" />

## Remarks

Not every switch supports each value.

This enumeration is used in the [GameInputFlightStickState](/reference/input/gameinput/structs/gameinputflightstickstate) structure and the [IGameInputReading::GetControllerSwitchState](/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerswitchstate) method.

For intermediate and advanced use cases of the GameInput API, see [Advanced GameInput](/build/core-features/common/input/advanced/input-advanced-topics) topics.

<a id="requirementsSection" />

## Requirements

**Header:** GameInput.h

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

<a id="seealsoSection" />

## See also

[Overview of GameInput](/build/core-features/common/input/overviews/input-overview)\
[GameInput](/reference/input/gameinput/gameinput_members)

## Version History

| Version | Changes     |
| ------- | ----------- |
| **v0**  | Introduced. |


## Related topics

- [IGameInputReading::GetControllerAxisState](/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrolleraxisstate.md)
- [GameInputButtonMapping](/reference/input/gameinput/structs/gameinputbuttonmapping.md)
- [GameInputFlightStickState](/reference/input/gameinput/structs/gameinputflightstickstate.md)
- [GameInputAxisMapping](/reference/input/gameinput/structs/gameinputaxismapping.md)
- [GameInput](/reference/input/gameinput/gameinput_members.md)
