> ## 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

Énumère les positions d'un commutateur sur un périphérique d'entrée.

<a id="syntaxSection" />

## Syntaxe

```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" />

## Constantes

| Constante | Description |
| - | - |
| GameInputSwitchCenter | Commutateur en position centrale. |
| GameInputSwitchUp | Commutateur en position haute. |
| GameInputSwitchUpRight | Commutateur en position haut-droite. |
| GameInputSwitchRight | Commutateur en position droite. |
| GameInputSwitchDownRight | Commutateur en position bas-droite. |
| GameInputSwitchDown | Commutateur en position basse. |
| GameInputSwitchDownLeft | Commutateur en position bas-gauche. |
| GameInputSwitchLeft | Commutateur en position gauche. |
| GameInputSwitchUpLeft | Commutateur en position haut-gauche. |

<a id="remarksSection" />

## Remarques

Tous les commutateurs ne prennent pas en charge chaque valeur.

Cette énumération est utilisée dans la structure [GameInputFlightStickState](/fr/reference/input/gameinput/structs/gameinputflightstickstate) et dans la méthode [IGameInputReading::GetControllerSwitchState](/fr/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerswitchstate).

Pour les cas d'usage intermédiaires et avancés de l'API GameInput, consultez les rubriques [GameInput avancé](/fr/build/core-features/common/input/advanced/input-advanced-topics).

<a id="requirementsSection" />

## Configuration requise

**En-tête :** GameInput.h

**Plateformes prises en charge :** Windows, consoles de la famille XBOX One et consoles XBOX Series

<a id="seealsoSection" />

## Voir aussi

[Vue d'ensemble de GameInput](/fr/build/core-features/common/input/overviews/input-overview)\
[GameInput](/fr/reference/input/gameinput/gameinput_members)

## Historique des versions

| Version | Modifications |
| - | - |
| **v0** | Introduite. |


## Related topics

- [GameInputSwitchPosition](/reference/input/gameinput/enums/gameinputswitchposition.md)
- [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)
