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

# GameInputFlightStickButtons

> GameInputFlightStickButtons

# GameInputFlightStickButtons

Enumera os botões do flight stick.

<a id="syntaxSection" />

## Sintaxe

```cpp theme={null}
enum GameInputFlightStickButtons
{
    GameInputFlightStickNone           = 0x00000000,
    GameInputFlightStickMenu           = 0x00000001,
    GameInputFlightStickView           = 0x00000002,
    GameInputFlightStickFirePrimary    = 0x00000004,
    GameInputFlightStickFireSecondary  = 0x00000008,
    GameInputFlightStickHatSwitchUp    = 0x00000010,
    GameInputFlightStickHatSwitchDown  = 0x00000020,
    GameInputFlightStickHatSwitchLeft  = 0x00000040,
    GameInputFlightStickHatSwitchRight = 0x00000080,
    GameInputFlightStickA              = 0x00000100,
    GameInputFlightStickB              = 0x00000200,
    GameInputFlightStickX              = 0x00000400,
    GameInputFlightStickY              = 0x00000800,
};
```

<a id="constantsSection" />

## Constantes

| Constante | Descrição |
| - | - |
| GameInputFlightStickNone | Indica que nenhum botão está pressionado. |
| GameInputFlightStickMenu | Indica que o botão Menu está pressionado. |
| GameInputFlightStickView | Indica que o botão Exibir está pressionado. |
| GameInputFlightStickFirePrimary | Indica que o botão de disparo principal está pressionado. |
| GameInputFlightStickFireSecondary | Indica que o botão de disparo secundário está pressionado. |
| GameInputFlightStickHatSwitchUp | Indica que a parte superior do hat switch está pressionada. |
| GameInputFlightStickHatSwitchDown | Indica que a parte inferior do hat switch está pressionada. |
| GameInputFlightStickHatSwitchLeft | Indica que a parte esquerda do hat switch está pressionada. |
| GameInputFlightStickHatSwitchRight | Indica que a parte direita do hat switch está pressionada. |
| GameInputFlightStickA | Indica que o botão A do gamepad está pressionado. |
| GameInputFlightStickB | Indica que o botão B do gamepad está pressionado. |
| GameInputFlightStickX | Indica que o botão X do gamepad está pressionado. |
| GameInputFlightStickY | Indica que o botão Y do gamepad está pressionado. |

<a id="remarksSection" />

## Comentários

Esta enumeração é usada na estrutura [GameInputFlightStickState](/pt-BR/reference/input/gameinput/structs/gameinputflightstickstate). Você pode combinar valores para ler vários botões simultaneamente.

`GameInputFlightStickHatSwitchUp`, `GameInputFlightStickHatSwitchDown`, `GameInputFlightStickHatSwitchLeft` e `GameInputFlightStickHatSwitchRight` são traduções do hat switch para valores de botão. As diagonais são representadas apresentando dois botões pressionados simultaneamente, como acontece com o D-pad de um gamepad. O centro do hat switch é representado quando nenhum desses botões está pressionado. Esses botões também são a única maneira de consultar informações de mapeamento do hat switch usando o método [IGameInputMapper::GetFlightStickButtonMappingInfo](/pt-BR/reference/input/gameinput/interfaces/igameinputmapper/methods/igameinputmapper_getflightstickbuttonmappinginfo).

`GameInputFlightStickA`, `GameInputFlightStickB`, `GameInputFlightStickX` e `GameInputFlightStickY` não fazem parte dos mapeamentos do flight stick. Em vez disso, são valores copiados do relatório de botões do gamepad. Se não houver nenhum gamepad mapeado para o dispositivo, esses valores serão sempre 0.

Para obter mais informações, consulte a seção [Obtendo dados das leituras](/pt-BR/build/core-features/common/input/overviews/input-readings#gettingStateSection) de [Leituras do GameInput](/pt-BR/build/core-features/common/input/overviews/input-readings).

Esta enumeração também pode ser usada com o método [IGameInputMapper::GetFlightStickButtonMappingInfo](/pt-BR/reference/input/gameinput/interfaces/igameinputmapper/methods/igameinputmapper_getflightstickbuttonmappinginfo) para recuperar informações de mapeamento de um botão específico do flight stick.

<a id="requirementsSection" />

## Requisitos

**Cabeçalho:** GameInput.h

**Plataformas compatíveis:** 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** | **Adicionadas 8 constantes**: `HatSwitchUp`, `HatSwitchDown`, `HatSwitchLeft`, `HatSwitchRight`, `A`, `B`, `X`, `Y` para botões semelhantes aos de gamepad. |
| **v0** | Introduzida. |

## Apêndice: versões anteriores

### v0

```cpp theme={null}
enum GameInputFlightStickButtons
{
    GameInputFlightStickNone          = 0x00000000,
    GameInputFlightStickMenu          = 0x00000001,
    GameInputFlightStickView          = 0x00000002,
    GameInputFlightStickFirePrimary   = 0x00000004,
    GameInputFlightStickFireSecondary = 0x00000008,
};
```


## Related topics

- [GameInputFlightStickButtons](/reference/input/gameinput/enums/gameinputflightstickbuttons.md)
- [IGameInputMapper::GetFlightStickButtonMappingInfo](/reference/input/gameinput/interfaces/igameinputmapper/methods/igameinputmapper_getflightstickbuttonmappinginfo.md)
- [GameInputFlightStickState](/reference/input/gameinput/structs/gameinputflightstickstate.md)
- [GameInput](/reference/input/gameinput/gameinput_members.md)
