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

# GetArcadeStickState

> IGameInputReading::GetArcadeStickState

# IGameInputReading::GetArcadeStickState

检索一个输入读取视图，用于描述街机摇杆的状态。

## 语法

```cpp theme={null}
bool GetArcadeStickState(
    GameInputArcadeStickState* state
)
```

### 参数

*state*   \_Out\_\
类型:[GameInputArcadeStickState\*](https://docs.xbox.com/zh-CN/reference/input/gameinput/structs/gameinputarcadestickstate.md)

将输入解释为街机摇杆输入。

### 返回值

类型:bool

成功将输入解释为街机摇杆时返回 true。尝试读取无法识别为街机摇杆的输入时返回 false。

[Input API 概述](https://docs.xbox.com/zh-CN/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputReading](https://docs.xbox.com/zh-CN/reference/input/gameinput/interfaces/igameinputreading/igameinputreading.md)

## 版本历史

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


## Related topics

- [GetFlightStickState](https://docs.xbox.com/zh-CN/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getflightstickstate.md)
- [GameInputArcadeStickButtons](https://docs.xbox.com/zh-CN/reference/input/gameinput/enums/gameinputarcadestickbuttons.md)
- [GameInputLabel](https://docs.xbox.com/zh-CN/reference/input/gameinput/enums/gameinputlabel.md)
- [Arcade Buttons](https://docs.xbox.com/zh-CN/reference/system/touchadaptationkit/controls/game-streaming-touch-arcadebuttons.md)
- [GameInput API 成员](https://docs.xbox.com/zh-CN/reference/input/gameinput/gameinput_members.md)
