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

# IGameInputReading::GetUiNavigationState（已弃用）

> IGameInputReading::GetUiNavigationState

# IGameInputReading::GetUiNavigationState

> [!WARNING]
>
> **已弃用。** 此方法已在 GameInput v3 中移除，当前 API 中不再提供。

从读数中获取 UI 导航输入状态。

## 语法

```cpp theme={null}
bool GetUiNavigationState(
    GameInputUiNavigationState* state
);
```

### 参数

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

指向要用导航数据填充的 [GameInputUiNavigationState](https://docs.xbox.com/zh-CN/reference/input/gameinput/deprecated/structs/gameinputuinavigationstate.md) 结构的指针。

### 返回值

类型：bool

如果读数包含 UI 导航状态，则返回 `true`；否则返回 `false`。

## 备注

此方法在 v1 和 v2 中可用，但已在 v3 中移除。UI 导航状态曾通过 [GameInputUiNavigationState](https://docs.xbox.com/zh-CN/reference/input/gameinput/deprecated/structs/gameinputuinavigationstate.md) 结构提供，将游戏手柄和键盘输入映射为菜单交互的导航操作。作为读数种类模型整合的一部分，此方法已在 v3 中移除。

## 版本历史

| 版本 | 变更 |
| - | - |
| **v3** | 已移除。 |
| **v2** | 无变更。 |
| **v1** | 无变更。 |
| **v0** | 已引入。 |

## 另请参阅

[已弃用的 GameInput API 成员](https://docs.xbox.com/zh-CN/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)\
[GameInputUiNavigationState](https://docs.xbox.com/zh-CN/reference/input/gameinput/deprecated/structs/gameinputuinavigationstate.md)\
[IGameInputReading](https://docs.xbox.com/zh-CN/reference/input/gameinput/interfaces/igameinputreading/igameinputreading.md)


## Related topics

- [GameInputUiNavigationState（已弃用）](https://docs.xbox.com/zh-CN/reference/input/gameinput/deprecated/structs/gameinputuinavigationstate.md)
- [IGameInputReading::GetTouchState（已弃用）](https://docs.xbox.com/zh-CN/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_gettouchstate.md)
- [IGameInputReading::GetMotionState（已弃用）](https://docs.xbox.com/zh-CN/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_getmotionstate.md)
- [IGameInputReading::GetTouchCount（已弃用）](https://docs.xbox.com/zh-CN/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_gettouchcount.md)
- [GameInputUiNavigationButtons（已弃用）](https://docs.xbox.com/zh-CN/reference/input/gameinput/deprecated/enums/gameinputuinavigationbuttons.md)
