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

# GameInputUiNavigationButtons

> GameInputUiNavigationButtons

# GameInputUiNavigationButtons

<Warning>**已弃用。** 此枚举已在 GameInput v3 中移除，当前 API 中不再提供。</Warning>

定义输入设备报告的 UI 导航按钮的位掩码标志。

## 语法

```cpp theme={null}
enum GameInputUiNavigationButtons : uint32_t
{
    GameInputUiNavigationNone       = 0x00000000,
    GameInputUiNavigationMenu       = 0x00000001,
    GameInputUiNavigationView       = 0x00000002,
    GameInputUiNavigationAccept     = 0x00000004,
    GameInputUiNavigationCancel     = 0x00000008,
    GameInputUiNavigationUp         = 0x00000010,
    GameInputUiNavigationDown       = 0x00000020,
    GameInputUiNavigationLeft       = 0x00000040,
    GameInputUiNavigationRight      = 0x00000080,
    GameInputUiNavigationContext1   = 0x00000100,
    GameInputUiNavigationContext2   = 0x00000200,
    GameInputUiNavigationContext3   = 0x00000400,
    GameInputUiNavigationContext4   = 0x00000800,
    GameInputUiNavigationPageUp     = 0x00001000,
    GameInputUiNavigationPageDown   = 0x00002000,
    GameInputUiNavigationPageLeft   = 0x00004000,
    GameInputUiNavigationPageRight  = 0x00008000,
    GameInputUiNavigationScrollUp   = 0x00010000,
    GameInputUiNavigationScrollDown = 0x00020000,
    GameInputUiNavigationScrollLeft = 0x00040000,
    GameInputUiNavigationScrollRight = 0x00080000,
};
```

## 常量

| 常量                               | 值          | 说明          |
| -------------------------------- | ---------- | ----------- |
| GameInputUiNavigationNone        | 0x00000000 | 未按任何按钮。     |
| GameInputUiNavigationMenu        | 0x00000001 | 菜单按钮。       |
| GameInputUiNavigationView        | 0x00000002 | 视图按钮。       |
| GameInputUiNavigationAccept      | 0x00000004 | 接受（确认）按钮。   |
| GameInputUiNavigationCancel      | 0x00000008 | 取消（返回）按钮。   |
| GameInputUiNavigationUp          | 0x00000010 | 向上方向输入。     |
| GameInputUiNavigationDown        | 0x00000020 | 向下方向输入。     |
| GameInputUiNavigationLeft        | 0x00000040 | 向左方向输入。     |
| GameInputUiNavigationRight       | 0x00000080 | 向右方向输入。     |
| GameInputUiNavigationContext1    | 0x00000100 | 上下文操作 1 按钮。 |
| GameInputUiNavigationContext2    | 0x00000200 | 上下文操作 2 按钮。 |
| GameInputUiNavigationContext3    | 0x00000400 | 上下文操作 3 按钮。 |
| GameInputUiNavigationContext4    | 0x00000800 | 上下文操作 4 按钮。 |
| GameInputUiNavigationPageUp      | 0x00001000 | 上一页。        |
| GameInputUiNavigationPageDown    | 0x00002000 | 下一页。        |
| GameInputUiNavigationPageLeft    | 0x00004000 | 向左翻页。       |
| GameInputUiNavigationPageRight   | 0x00008000 | 向右翻页。       |
| GameInputUiNavigationScrollUp    | 0x00010000 | 向上滚动。       |
| GameInputUiNavigationScrollDown  | 0x00020000 | 向下滚动。       |
| GameInputUiNavigationScrollLeft  | 0x00040000 | 向左滚动。       |
| GameInputUiNavigationScrollRight | 0x00080000 | 向右滚动。       |

## 版本历史

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

## 另请参阅

[已弃用的 GameInput API 成员](/reference/input/gameinput/deprecated/gameinput_deprecated_members)
[GameInputUiNavigationState](/reference/input/gameinput/deprecated/structs/gameinputuinavigationstate)
[GameInputUiNavigationInfo](/reference/input/gameinput/deprecated/structs/gameinputuinavigationinfo)


## Related topics

- [GameInputUiNavigationState](/zh-CN/reference/input/gameinput/deprecated/structs/gameinputuinavigationstate.md)
- [GameInputUiNavigationInfo](/zh-CN/reference/input/gameinput/deprecated/structs/gameinputuinavigationinfo.md)
- [GameInput](/zh-CN/reference/input/gameinput/gameinput_members.md)
- [已弃用的 GameInput API 成员](/zh-CN/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)
- [IGameInputReading::GetUiNavigationState](/zh-CN/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_getuinavigationstate.md)
