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

# GetControllerSwitchCount

> IGameInputReading::GetControllerSwitchCount

# IGameInputReading::GetControllerSwitchCount

Récupère le nombre de commutateurs d'une manette de jeu.

## Syntaxe

```cpp theme={null}
uint32_t GetControllerSwitchCount();
```

### Paramètres

Cette méthode n'a aucun paramètre.

### Valeur de retour

Type : uint32\_t

Retourne le nombre de commutateurs d'une manette de jeu.

## Remarques

La méthode `IGameInputReading::GetControllerSwitchCount` récupère le nombre de commutateurs d'une manette de jeu. Elle détermine également les mémoires tampons requises par la méthode [IGameInputReading::GetControllerSwitchState](https://docs.xbox.com/fr-CA/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerswitchstate.md). Pour les cas d'utilisation intermédiaires et avancés de l'API GameInput, consultez [Rubriques avancées sur GameInput](https://docs.xbox.com/fr-CA/build/core-features/common/input/advanced/input-advanced-topics.md).

## Configuration requise

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

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

## Historique des versions

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


## Related topics

- [GetControllerSwitchState](https://docs.xbox.com/fr-CA/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerswitchstate.md)
- [IGameInputReading (contenu de l'interface)](https://docs.xbox.com/fr-CA/reference/input/gameinput/interfaces/igameinputreading/igameinputreading.md)
- [GetControllerAxisCount](https://docs.xbox.com/fr-CA/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrolleraxiscount.md)
- [GetControllerButtonCount](https://docs.xbox.com/fr-CA/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerbuttoncount.md)
- [GameInputControllerInfo](https://docs.xbox.com/fr-CA/reference/input/gameinput/structs/gameinputcontrollerinfo.md)
