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

# Orientation

> Orientation (DEPRECATED)

# Orientation (DEPRECATED)

触控布局将显示的方向。此功能已弃用。所有终结点都将忽略此值。

> [!WARNING]
>
> Orientation 已弃用，不应在任何布局中使用。所有终结点都将忽略此值。

## 常量

| 常量 | 描述 |
| :- | :- |
| **landscape** | 以横向模式渲染，布局的左上角对应视频流的左上角。 |
| **portrait** | 以竖向模式渲染，布局的左上角对应视频流的左下角（如同视频流被逆时针旋转 90 度）。 |
| **landscape-left** | 以横向模式渲染，设备顶部位于左侧。 |
| **landscape-right** | 以横向模式渲染，设备顶部位于右侧。 |
| **portrait-up** | 以竖向模式渲染，设备顶部位于上方。 |

## 备注

> [!WARNING]
>
> 相对于 XBOX 视频输出，串流客户端始终以 `landscape` 方向显示视频流。

使用暗示玩家以特定方式握持设备的方向可能会对某些玩家产生意外结果。建议仅使用 `landscape` 或 `portrait` 方向。

## 另请参阅

[Touch Adaptation Kit 参考](/zh-CN/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview.md)\
[Layout](/zh-CN/reference/system/touchadaptationkit/layout/game-streaming-touch-layout)


## Related topics

- [Xbox Accessibility Guideline 107](/fr-CA/build/game-principles/accessibility/xag-deep-dives/xag-107-input.md)
- [Xbox Accessibility Guideline 109](/fr-CA/build/game-principles/accessibility/xag-deep-dives/xag-109-objective-clarity.md)
- [GameInputSensorsState](/reference/input/gameinput/structs/gameinputsensorsstate.md)
- [GameInputSensorsKind](/reference/input/gameinput/enums/gameinputsensorskind.md)
