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

# GameInputArcadeStickButtons

> GameInputArcadeStickButtons

# GameInputArcadeStickButtons

枚举来自街机摇杆的输入。

<a id="syntaxSection" />

## 语法

```cpp theme={null}
enum GameInputArcadeStickButtons
{
    GameInputArcadeStickNone     = 0x00000000,
    GameInputArcadeStickMenu     = 0x00000001,
    GameInputArcadeStickView     = 0x00000002,
    GameInputArcadeStickUp       = 0x00000004,
    GameInputArcadeStickDown     = 0x00000008,
    GameInputArcadeStickLeft     = 0x00000010,
    GameInputArcadeStickRight    = 0x00000020,
    GameInputArcadeStickAction1  = 0x00000040,
    GameInputArcadeStickAction2  = 0x00000080,
    GameInputArcadeStickAction3  = 0x00000100,
    GameInputArcadeStickAction4  = 0x00000200,
    GameInputArcadeStickAction5  = 0x00000400,
    GameInputArcadeStickAction6  = 0x00000800,
    GameInputArcadeStickSpecial1 = 0x00001000,
    GameInputArcadeStickSpecial2 = 0x00002000
};
```

<a id="constantsSection" />

## 常量

| 常量                           | 说明                 |
| ---------------------------- | ------------------ |
| GameInputArcadeStickNone     | 街机摇杆处于中立状态。        |
| GameInputArcadeStickMenu     | 街机摇杆上的菜单按钮已被按下。    |
| GameInputArcadeStickView     | 街机摇杆上的视图按钮已被按下。    |
| GameInputArcadeStickUp       | 街机摇杆被向上推。          |
| GameInputArcadeStickDown     | 街机摇杆被向下推。          |
| GameInputArcadeStickLeft     | 街机摇杆被向左推。          |
| GameInputArcadeStickRight    | 街机摇杆被向右推。          |
| GameInputArcadeStickAction1  | 街机摇杆上的操作按钮 1 已被按下。 |
| GameInputArcadeStickAction2  | 街机摇杆上的操作按钮 2 已被按下。 |
| GameInputArcadeStickAction3  | 街机摇杆上的操作按钮 3 已被按下。 |
| GameInputArcadeStickAction4  | 街机摇杆上的操作按钮 4 已被按下。 |
| GameInputArcadeStickAction5  | 街机摇杆上的操作按钮 5 已被按下。 |
| GameInputArcadeStickAction6  | 街机摇杆上的操作按钮 6 已被按下。 |
| GameInputArcadeStickSpecial1 | 街机摇杆上的特殊按钮 1 已被按下。 |
| GameInputArcadeStickSpecial2 | 街机摇杆上的特殊按钮 2 已被按下。 |

<a id="remarksSection" />

## 备注

此枚举在 [GameInputArcadeStickState](/reference/input/gameinput/structs/gameinputarcadestickstate) 结构中使用。你可以组合多个值以同时读取多个按钮。

有关详细信息，请参阅 [GameInput 读数](/build/core-features/common/input/overviews/input-readings) 中的 [从读数获取数据](/build/core-features/common/input/overviews/input-readings#gettingStateSection) 部分。

此枚举还可与 [IGameInputMapper::GetArcadeStickButtonMappingInfo](/reference/input/gameinput/interfaces/igameinputmapper/methods/igameinputmapper_getarcadestickbuttonmappinginfo) 方法配合使用，以检索特定街机摇杆按钮的映射信息。

<a id="requirementsSection" />

## 要求

**标头：** GameInput.h

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

<a id="seealsoSection" />

## 另请参阅

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

## 版本历史

| 版本     | 变更  |
| ------ | --- |
| **v0** | 引入。 |


## Related topics

- [GameInput](/zh-CN/reference/input/gameinput/gameinput_members.md)
- [IGameInputReading::GetArcadeStickState](/zh-CN/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getarcadestickstate.md)
- [GameInputFlightStickButtons](/zh-CN/reference/input/gameinput/enums/gameinputflightstickbuttons.md)
- [GameInputKind](/zh-CN/reference/input/gameinput/enums/gameinputkind.md)
- [GameInputLabel](/zh-CN/reference/input/gameinput/enums/gameinputlabel.md)
