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

# GameInputFlightStickInfo

> GameInputFlightStickInfo

# GameInputFlightStickInfo

描述飛行搖桿的屬性。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
struct GameInputFlightStickInfo
{
    GameInputLabel menuButtonLabel;
    GameInputLabel viewButtonLabel;
    GameInputLabel firePrimaryButtonLabel;
    GameInputLabel fireSecondaryButtonLabel;
    GameInputLabel hatSwitchUpLabel;
    GameInputLabel hatSwitchDownLabel;
    GameInputLabel hatSwitchLeftLabel;
    GameInputLabel hatSwitchRightLabel;
    GameInputLabel aButtonLabel;
    GameInputLabel bButtonLabel;
    GameInputLabel xButtonLabel;
    GameInputLabel yButtonLabel;
    uint32_t       extraButtonCount;
    uint32_t       extraAxisCount;
};
```

<a id="membersSection" />

### 成員

*menuButtonLabel*<br />
類型：[GameInputLabel](/zh-TW/reference/input/gameinput/enums/gameinputlabel)

功能表按鈕的實體標籤。

*viewButtonLabel*<br />
類型：[GameInputLabel](/zh-TW/reference/input/gameinput/enums/gameinputlabel)

檢視按鈕的實體標籤。

*firePrimaryButtonLabel*<br />
類型：[GameInputLabel](/zh-TW/reference/input/gameinput/enums/gameinputlabel)

主要射擊按鈕的實體標籤。

*fireSecondaryButtonLabel*<br />
類型：[GameInputLabel](/zh-TW/reference/input/gameinput/enums/gameinputlabel)

次要射擊按鈕的實體標籤。

*hatSwitchUpLabel*<br />
類型：[GameInputLabel](/zh-TW/reference/input/gameinput/enums/gameinputlabel)

苦力帽開關向上輸入的實體標籤。

*hatSwitchDownLabel*<br />
類型：[GameInputLabel](/zh-TW/reference/input/gameinput/enums/gameinputlabel)

苦力帽開關向下輸入的實體標籤。

*hatSwitchLeftLabel*<br />
類型：[GameInputLabel](/zh-TW/reference/input/gameinput/enums/gameinputlabel)

苦力帽開關向左輸入的實體標籤。

*hatSwitchRightLabel*<br />
類型：[GameInputLabel](/zh-TW/reference/input/gameinput/enums/gameinputlabel)

苦力帽開關向右輸入的實體標籤。

*aButtonLabel*<br />
類型：[GameInputLabel](/zh-TW/reference/input/gameinput/enums/gameinputlabel)

**A** 按鈕的實體標籤。

*bButtonLabel*<br />
類型：[GameInputLabel](/zh-TW/reference/input/gameinput/enums/gameinputlabel)

**B** 按鈕的實體標籤。

*xButtonLabel*<br />
類型：[GameInputLabel](/zh-TW/reference/input/gameinput/enums/gameinputlabel)

**X** 按鈕的實體標籤。

*yButtonLabel*<br />
類型：[GameInputLabel](/zh-TW/reference/input/gameinput/enums/gameinputlabel)

**Y** 按鈕的實體標籤。

<a id="remarksSection" />

## 備註

此結構用於 [GameInputDeviceInfo](/zh-TW/reference/input/gameinput/structs/gameinputdeviceinfo) 結構中。`GameInputDeviceInfo` 由 [IGameInputDevice::GetDeviceInfo](/zh-TW/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getdeviceinfo) 方法使用。

如需詳細資訊，請參閱 [GameInput 裝置](/zh-TW/build/core-features/common/input/overviews/input-devices)。

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

## 版本歷程記錄

| 版本 | 變更 |
| - | - |
| **v3** | 已移除 `hatSwitchKind`。**新增** 4 個苦力帽方向按鈕標籤 (`hatSwitchUpLabel`、`hatSwitchDownLabel`、`hatSwitchLeftLabel`、`hatSwitchRightLabel`)、4 個正面按鈕標籤 (`aButtonLabel`、`bButtonLabel`、`xButtonLabel`、`yButtonLabel`)、`extraButtonCount`、`extraAxisCount`。 |
| **v0** | 推出。 |

## 附錄：先前版本

### v0、v1、v2

```cpp theme={null}
struct GameInputFlightStickInfo
{
    GameInputLabel      menuButtonLabel;
    GameInputLabel      viewButtonLabel;
    GameInputLabel      firePrimaryButtonLabel;
    GameInputLabel      fireSecondaryButtonLabel;
    GameInputSwitchKind hatSwitchKind;
};
```


## Related topics

- [GameInputFlightStickInfo](/reference/input/gameinput/structs/gameinputflightstickinfo.md)
- [GameInputLabel](/reference/input/gameinput/enums/gameinputlabel.md)
- [GameInput](/reference/input/gameinput/gameinput_members.md)
- [GameInputDeviceInfo](/reference/input/gameinput/structs/gameinputdeviceinfo.md)
