> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GameInputFlightStickState

> GameInputFlightStickState

Describes the state of a flight stick.

## Syntax

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

### Members

*buttons*\

Type: [GameInputFlightStickButtons](https://docs.xbox.com/reference/input/gameinput/enums/gameinputflightstickbuttons.md)

The flight stick buttons that are pressed.

*hatSwitch*\

Type: [GameInputSwitchPosition](https://docs.xbox.com/reference/input/gameinput/enums/gameinputswitchposition.md)

Position of the hat switch.

*roll*\

Type: float

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

*pitch*\

Type: float

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

*yaw*\

Type: float

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

*throttle*\

Type: float

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

## Remarks

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

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

## Requirements

**Header:** GameInput.h

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

## See also

[Overview of GameInput](https://docs.xbox.com/build/core-features/common/input/overviews/input-overview.md)\
[GameInput](https://docs.xbox.com/reference/input/gameinput/gameinput_members.md)

## Version History

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


## Related topics

- [GetFlightStickState](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getflightstickstate.md)
- [GameInputFlightStickButtons](https://docs.xbox.com/reference/input/gameinput/enums/gameinputflightstickbuttons.md)
- [GameInputSwitchPosition](https://docs.xbox.com/reference/input/gameinput/enums/gameinputswitchposition.md)
- [GameInput API members](https://docs.xbox.com/reference/input/gameinput/gameinput_members.md)
- [GameInputFlightStickAxes](https://docs.xbox.com/reference/input/gameinput/enums/gameinputflightstickaxes.md)
