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

Le nombre attendu de commutateurs sur la manette de jeu.
Cette valeur peut être récupérée en appelant [IGameInputReading::GetControllerSwitchCount](/fr-CA/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerswitchcount).

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

## Historique des versions

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


## Related topics

- [IGameInputReading::GetControllerSwitchState](/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerswitchstate.md)
- [IGameInputReading::GetControllerSwitchCount](/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerswitchcount.md)
