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

# GameInputControllerSwitchInfo

> GameInputControllerSwitchInfo

# GameInputControllerSwitchInfo

Décrit un commutateur d'un périphérique d'entrée.

<a id="syntaxSection" />

## Syntaxe

```cpp theme={null}
struct GameInputControllerSwitchInfo
{
    GameInputLabel      labels[GAMEINPUT_MAX_SWITCH_STATES];
    GameInputSwitchKind kind;
};
```

<a id="membersSection" />

### Membres

*labels*<br />
Type : [GameInputLabel](/fr/reference/input/gameinput/enums/gameinputlabel)

Étiquettes des états du commutateur.

*kind*<br />
Type : [GameInputSwitchKind](/fr/reference/input/gameinput/enums/gameinputswitchkind)

Type du commutateur.

<a id="remarksSection" />

## Remarques

Cette structure est utilisée dans la structure [GameInputControllerInfo](/fr/reference/input/gameinput/structs/gameinputcontrollerinfo). `GameInputControllerInfo` est utilisée par la structure [GameInputDeviceInfo](/fr/reference/input/gameinput/structs/gameinputdeviceinfo) pour décrire les propriétés d'un périphérique d'entrée de type manette.

<a id="requirementsSection" />

## Configuration requise

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

**Plateformes prises en charge :** Windows, consoles de la famille XBOX One et consoles XBOX Series

<a id="seealsoSection" />

## Voir aussi

[Vue d'ensemble de GameInput](/fr/build/core-features/common/input/overviews/input-overview)\
[GameInput](/fr/reference/input/gameinput/gameinput_members)

## Historique des versions

| Version | Modifications |
| - | - |
| **v3** | **Suppression** de `mappedInputKinds`. Remplacement de `label` (singulier) par le tableau `labels[GAMEINPUT_MAX_SWITCH_STATES]`. |
| **v1** | **Suppression** de `positionLabels[9]` et de tous les champs hérités/HID bruts et DInput (`legacyDInputIndex`, `legacyHidIndex`, `rawReportIndex`, pointeurs de rapports bruts). |
| **v0** | Introduit. |

## Annexe : versions précédentes

### v1, v2

```cpp theme={null}
struct GameInputControllerSwitchInfo
{
    GameInputKind       mappedInputKinds;
    GameInputLabel      label;
    GameInputSwitchKind kind;
};
```

### v0

```cpp theme={null}
struct GameInputControllerSwitchInfo
{
    GameInputKind       mappedInputKinds;
    GameInputLabel      label;
    GameInputLabel      positionLabels[9];
    GameInputSwitchKind kind;
    uint8_t             legacyDInputIndex;
    uint8_t             legacyHidIndex;
    uint16_t            rawReportIndex;
};
```


## Related topics

- [GameInputControllerInfo](/fr/reference/input/gameinput/structs/gameinputcontrollerinfo.md)
- [GameInputSwitchKind](/fr/reference/input/gameinput/enums/gameinputswitchkind.md)
- [GameInputLabel](/fr/reference/input/gameinput/enums/gameinputlabel.md)
- [GameInput](/fr/reference/input/gameinput/gameinput_members.md)
- [IGameInputReading::GetControllerSwitchCount](/fr/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerswitchcount.md)
