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

# GameInputFlightStickState

> GameInputFlightStickState

# GameInputFlightStickState

Describes the state of a flight stick.

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
struct GameInputFlightStickState {
    GameInputFlightStickButtons buttons;
    GameInputSwitchPosition     hatSwitch;
    float                       roll;
    float                       pitch;
    float                       yaw;
    float                       throttle;
};
```

<a id="membersSection" />

### Members

*buttons*<br />
Type: [GameInputFlightStickButtons](/reference/input/gameinput/enums/gameinputflightstickbuttons)

The flight stick buttons that are pressed.

*hatSwitch*<br />
Type: [GameInputSwitchPosition](/reference/input/gameinput/enums/gameinputswitchposition)

Position of the hat switch.

*roll*<br />
Type: float

Normalized roll value in the range \[-1.0, 1.0].

*pitch*<br />
Type: float

Normalized pitch value in the range \[-1.0, 1.0].

*yaw*<br />
Type: float

Normalized yaw value in the range \[-1.0, 1.0].

*throttle*<br />
Type: float

Normalized throttle value in the range \[-1.0, 1.0].

<a id="remarksSection" />

## Remarks

This structure is used by the [IGameInputReading::GetFlightStickState](/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getflightstickstate) method.

For more information, see the [Getting data from readings](/build/core-features/common/input/overviews/input-readings#gettingStateSection) section of [GameInput readings](/build/core-features/common/input/overviews/input-readings). For a related code example, see [A simple gamepad input loop](/build/core-features/common/input/overviews/input-readings#sampleSection).

<a id="requirementsSection" />

## Requirements

**Header:** GameInput.h

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

<a id="seealsoSection" />

## See also

[Overview of GameInput](/build/core-features/common/input/overviews/input-overview)\
[GameInput](/reference/input/gameinput/gameinput_members)

## Version History

| Version | Changes     |
| ------- | ----------- |
| **v0**  | Introduced. |


## Related topics

- [IGameInputReading::GetFlightStickState](/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getflightstickstate.md)
- [GameInputFlightStickButtons](/reference/input/gameinput/enums/gameinputflightstickbuttons.md)
- [GameInputSwitchPosition](/reference/input/gameinput/enums/gameinputswitchposition.md)
- [GameInput](/reference/input/gameinput/gameinput_members.md)
- [GameInputFlightStickAxes](/reference/input/gameinput/enums/gameinputflightstickaxes.md)
