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

# IGameInputReading::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](/fr/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerswitchcount).

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

## Historique des versions

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


## Related topics

- [IGameInputReading::GetControllerSwitchCount](/fr/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerswitchcount.md)
- [GameInputSwitchPosition](/fr/reference/input/gameinput/enums/gameinputswitchposition.md)
- [IGameInputReading::GetControllerAxisState](/fr/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrolleraxisstate.md)
- [IGameInputReading::GetControllerButtonState](/fr/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerbuttonstate.md)
- [IGameInputReading::GetControllerButtonCount](/fr/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerbuttoncount.md)
