> ## 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 sur 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-CA/reference/input/gameinput/enums/gameinputlabel)

Les étiquettes des états du commutateur.

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

Le type du commutateur.

<a id="remarksSection" />

## Remarques

Cette structure est utilisée dans la structure [GameInputControllerInfo](/fr-CA/reference/input/gameinput/structs/gameinputcontrollerinfo). `GameInputControllerInfo` est utilisée par la structure [GameInputDeviceInfo](/fr-CA/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-CA/build/core-features/common/input/overviews/input-overview)\
[GameInput](/fr-CA/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 HID bruts/hérités 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

- [GameInputControllerSwitchInfo](/reference/input/gameinput/structs/gameinputcontrollerswitchinfo.md)
- [GameInputControllerInfo](/reference/input/gameinput/structs/gameinputcontrollerinfo.md)
- [GameInputSwitchKind](/reference/input/gameinput/enums/gameinputswitchkind.md)
- [GameInputLabel](/reference/input/gameinput/enums/gameinputlabel.md)
