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

描述飛行搖桿的狀態。

<a id="syntaxSection" />

## 語法

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

<a id="membersSection" />

### 成員

*buttons*<br />
類型：[GameInputFlightStickButtons](/zh-TW/reference/input/gameinput/enums/gameinputflightstickbuttons)

按下的飛行搖桿按鈕。

*hatSwitch*<br />
類型：[GameInputSwitchPosition](/zh-TW/reference/input/gameinput/enums/gameinputswitchposition)

苦力帽開關的位置。

*roll*<br />
類型：float

範圍 \[-1.0, 1.0] 內的正規化滾轉值。

*pitch*<br />
類型：float

範圍 \[-1.0, 1.0] 內的正規化俯仰值。

*yaw*<br />
類型：float

範圍 \[-1.0, 1.0] 內的正規化偏擺值。

*throttle*<br />
類型：float

範圍 \[-1.0, 1.0] 內的正規化油門值。

<a id="remarksSection" />

## 備註

此結構由 [IGameInputReading::GetFlightStickState](/zh-TW/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getflightstickstate) 方法使用。

如需詳細資訊，請參閱 [GameInput 讀數](/zh-TW/build/core-features/common/input/overviews/input-readings)的[從讀數取得資料](/zh-TW/build/core-features/common/input/overviews/input-readings#gettingStateSection)一節。如需相關的程式碼範例，請參閱[簡單的遊戲台輸入迴圈](/zh-TW/build/core-features/common/input/overviews/input-readings#sampleSection)。

<a id="requirementsSection" />

## 需求

**標頭：** GameInput.h

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

<a id="seealsoSection" />

## 另請參閱

[GameInput 概觀](/zh-TW/build/core-features/common/input/overviews/input-overview)\
[GameInput](/zh-TW/reference/input/gameinput/gameinput_members)

## 版本歷程記錄

| 版本 | 變更 |
| - | - |
| **v0** | 推出。 |


## Related topics

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