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

# GetControllerSwitchState

> IGameInputReading::GetControllerSwitchState

# IGameInputReading::GetControllerSwitchState

Récupère l'état des commutateurs d'une manette de jeu.

## Syntaxe

```cpp theme={null}
uint32_t GetControllerSwitchState(
    uint32_t stateArrayCount,
    GameInputSwitchPosition* stateArray
);
```

### Paramètres

*stateArrayCount*   \_In\_\
Type : uint32\_t

Nombre attendu de commutateurs sur la manette de jeu.
Cette valeur peut être récupérée en appelant [IGameInputReading::GetControllerSwitchCount](https://docs.xbox.com/fr/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerswitchcount.md).

[Vue d'ensemble de l'API Input](https://docs.xbox.com/fr/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputReading](https://docs.xbox.com/fr/reference/input/gameinput/interfaces/igameinputreading/igameinputreading.md)

## Historique des versions

| Version | Modifications |
| - | - |
| **v0** | Introduit. |


## Related topics

- [GetControllerSwitchCount](https://docs.xbox.com/fr/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerswitchcount.md)
- [GameInputSwitchPosition](https://docs.xbox.com/fr/reference/input/gameinput/enums/gameinputswitchposition.md)
- [IGameInputReading (contenu de l'interface)](https://docs.xbox.com/fr/reference/input/gameinput/interfaces/igameinputreading/igameinputreading.md)
- [GetControllerAxisState](https://docs.xbox.com/fr/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrolleraxisstate.md)
- [GetControllerButtonState](https://docs.xbox.com/fr/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerbuttonstate.md)
