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

Descreve um switch em um dispositivo de entrada.

<a id="syntaxSection" />

## Sintaxe

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

<a id="membersSection" />

### Membros

*labels*<br />
Tipo: [GameInputLabel](/pt-BR/reference/input/gameinput/enums/gameinputlabel)

Os rótulos dos estados do switch.

*kind*<br />
Tipo: [GameInputSwitchKind](/pt-BR/reference/input/gameinput/enums/gameinputswitchkind)

O tipo do switch.

<a id="remarksSection" />

## Comentários

Essa estrutura é usada na estrutura [GameInputControllerInfo](/pt-BR/reference/input/gameinput/structs/gameinputcontrollerinfo). `GameInputControllerInfo` é usada pela estrutura [GameInputDeviceInfo](/pt-BR/reference/input/gameinput/structs/gameinputdeviceinfo) para descrever as propriedades de um dispositivo de entrada do tipo controle.

<a id="requirementsSection" />

## Requisitos

**Cabeçalho:** GameInput.h

**Plataformas com suporte:** Windows, consoles da família XBOX One e consoles XBOX Series

<a id="seealsoSection" />

## Confira também

[Visão geral do GameInput](/pt-BR/build/core-features/common/input/overviews/input-overview)\
[GameInput](/pt-BR/reference/input/gameinput/gameinput_members)

## Histórico de versões

| Versão | Alterações |
| - | - |
| **v3** | **Removido** `mappedInputKinds`. O `label` singular foi substituído pela matriz `labels[GAMEINPUT_MAX_SWITCH_STATES]`. |
| **v1** | **Removidos** `positionLabels[9]` e todos os campos legados/brutos de HID e DInput (`legacyDInputIndex`, `legacyHidIndex`, `rawReportIndex`, ponteiros de relatório bruto). |
| **v0** | Introduzida. |

## Apêndice: versões anteriores

### 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](/pt-BR/reference/input/gameinput/structs/gameinputcontrollerinfo.md)
- [GameInputSwitchKind](/pt-BR/reference/input/gameinput/enums/gameinputswitchkind.md)
- [GameInputLabel](/pt-BR/reference/input/gameinput/enums/gameinputlabel.md)
- [GameInput](/pt-BR/reference/input/gameinput/gameinput_members.md)
- [IGameInputReading::GetControllerSwitchCount](/pt-BR/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerswitchcount.md)
