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

# GetControllerButtonState

> IGameInputReading::GetControllerButtonState

# IGameInputReading::GetControllerButtonState

Récupère les informations d'état des boutons d'une manette de jeu.

## Syntaxe

```cpp theme={null}
uint32_t GetControllerButtonState(
    uint32_t stateArrayCount,
    bool* stateArray
);
```

### Paramètres

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

Nombre attendu de boutons sur une manette de jeu.
Ce nombre peut être récupéré en appelant [IGameInputReading::GetControllerButtonCount](https://docs.xbox.com/fr/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerbuttoncount.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

- [GetControllerButtonCount](https://docs.xbox.com/fr/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerbuttoncount.md)
- [IGameInputReading (contenu de l'interface)](https://docs.xbox.com/fr/reference/input/gameinput/interfaces/igameinputreading/igameinputreading.md)
- [Interfaçage avec les différents types de périphériques GameInput](https://docs.xbox.com/fr/build/core-features/common/input/hardware/input-hardware-interfaces.md)
- [GetControllerAxisState](https://docs.xbox.com/fr/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrolleraxisstate.md)
- [GetControllerSwitchState](https://docs.xbox.com/fr/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerswitchstate.md)
