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

# GameInputKeyState

> GameInputKeyState

# GameInputKeyState

Descreve o estado de uma tecla ativa em um controle de jogo.

<a id="syntaxSection" />

## Sintaxe

```cpp theme={null}
struct GameInputKeyState
{
    uint32_t scanCode;
    uint32_t codePoint;
    uint8_t  virtualKey;
    bool     isDeadKey;
};
```

<a id="membersSection" />

### Membros

*scanCode*<br />
Tipo: uint32\_t

O código de varredura da tecla.

*codePoint*<br />
Tipo: uint32\_t

O ponto de código Unicode do glifo físico na tecla.

*virtualKey*<br />
Tipo: uint8\_t

O código de tecla virtual.

*isDeadKey*<br />
Tipo: bool

Indica se a tecla é uma tecla morta. (Uma tecla morta modifica o caractere gerado pelo próximo pressionamento de tecla.)

<a id="remarksSection" />

## Comentários

Essa estrutura é usada pelo método [IGameInputReading::GetKeyState](/pt-BR/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getkeystate). `GetKeyState` destina-se exclusivamente ao mapeamento da entrada do teclado para ações do jogo, e não para entrada de texto comum.

Para obter mais informações, confira [Leituras do GameInput](/pt-BR/build/core-features/common/input/overviews/input-readings).

<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" />

## Documentação conceitual

* [Teclado e mouse no GameInput](/pt-BR/build/core-features/common/input/advanced/input-keyboard-mouse)

## 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 |
| - | - |
| **v0** | Introduzido. |


## Related topics

- [IGameInputReading::GetKeyState](/pt-BR/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getkeystate.md)
- [Teclados e mouses no GameInput](/pt-BR/build/core-features/common/input/advanced/input-keyboard-mouse.md)
- [GameInput](/pt-BR/reference/input/gameinput/gameinput_members.md)
- [IGameInputReading::GetKeyCount](/pt-BR/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getkeycount.md)
- [GameInputGamepadState](/pt-BR/reference/input/gameinput/structs/gameinputgamepadstate.md)
