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

# GameInputRacingWheelState

> GameInputRacingWheelState

# GameInputRacingWheelState

Descreve o estado de um volante de corrida.

<a id="syntaxSection" />

## Sintaxe

```cpp theme={null}
struct GameInputRacingWheelState
{
    GameInputRacingWheelButtons buttons;
    int32_t                     patternShifterGear;
    float                       wheel;
    float                       throttle;
    float                       brake;
    float                       clutch;
    float                       handbrake;
};
```

<a id="membersSection" />

### Membros

*buttons*<br />
Tipo: [GameInputRacingWheelButtons](/pt-BR/reference/input/gameinput/enums/gameinputracingwheelbuttons)

Estado dos botões de um volante de corrida.

*patternShifterGear*<br />
Tipo: int32\_t

Marcha atualmente selecionada no câmbio em H.

*wheel*<br />
Tipo: float

Posição do volante, normalizada como um valor no intervalo \[-1.0, 1.0].

*throttle*<br />
Tipo: float

Posição do acelerador, normalizada como um valor no intervalo \[0.0, 1.0].

*brake*<br />
Tipo: float

Posição do freio, normalizada como um valor no intervalo \[0.0, 1.0].

*clutch*<br />
Tipo: float

Posição da embreagem, normalizada como um valor no intervalo \[0.0, 1.0].

*handbrake*<br />
Tipo: float

Posição do freio de mão, normalizada como um valor no intervalo \[0.0, 1.0].

<a id="remarksSection" />

## Comentários

Essa estrutura é usada pelo método [IGameInputReading::GetRacingWheelState](/pt-BR/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getracingwheelstate).

Para determinar se um volante de corrida tem embreagem, freio de mão ou câmbio em H, examine a estrutura [GameInputRacingWheelInfo](/pt-BR/reference/input/gameinput/structs/gameinputracingwheelinfo).

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

## 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::GetRacingWheelState](/pt-BR/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getracingwheelstate.md)
- [GameInputRacingWheelButtons](/pt-BR/reference/input/gameinput/enums/gameinputracingwheelbuttons.md)
- [GameInput](/pt-BR/reference/input/gameinput/gameinput_members.md)
- [GameInputRacingWheelAxes](/pt-BR/reference/input/gameinput/enums/gameinputracingwheelaxes.md)
- [GameInputRacingWheelInfo](/pt-BR/reference/input/gameinput/structs/gameinputracingwheelinfo.md)
