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

# 軸

> 軸

# 軸

觸控控制項與對等實體類比控制項之間對應的定義。

## 屬性

[`input`- *string*](#inputs)。此控制項所接受的觸控[輸入](#inputs)類型。\
[`output` - *string*](#outputs)。此控制項所對應的遊戲台多軸、單軸或極座標搖桿動作。\
[`deadzone`](https://docs.xbox.com/zh-TW/reference/system/touchadaptationkit/types/game-streaming-touch-deadzone) - [*object*](https://docs.xbox.com/zh-TW/reference/system/touchadaptationkit/types/game-streaming-touch-deadzone.md)、*選擇性*。不會讀取或對應任何輸入之區域的大小與形狀。\
`sensitivity` - *number*、*選擇性*。在回應曲線計算之後套用的乘數。\
[`responseCurve` - *object*](https://docs.xbox.com/zh-TW/reference/system/touchadaptationkit/types/game-streaming-touch-responsecurve)、*選擇性*。[回應曲線](https://docs.xbox.com/zh-TW/reference/system/touchadaptationkit/types/game-streaming-touch-responsecurve.md)的形狀。

### 輸入值

| 常數 | 描述 |
| :- | :- |
| axisXY | 完整 2D 輸入，同時讀取 X 軸和 Y 軸的值。 |
| axisX | 1D 輸入，僅讀取 X 軸的值。 |
| axisY | 1D 輸入，僅讀取 Y 軸的值。 |
| axisUp | 極座標輸入。 |
| axisDown | 極座標輸入。 |
| axisLeft | 極座標輸入。 |
| axisRight | 極座標輸入。 |

### 輸出值

| 常數 | 描述 |
| :- | :- |
| leftJoystick | 輸出至左搖桿的 2D 輸出。 |
| rightJoystick | 輸出至右搖桿的 2D 輸出。 |
| leftJoystickX | 輸出至左搖桿 X 軸的 1D 輸出。 |
| leftJoystickY | 輸出至左搖桿 Y 軸的 1D 輸出。 |
| rightJoystickX | 輸出至右搖桿 X 軸的 1D 輸出。 |
| rightJoystickY | 輸出至左搖桿 Y 軸的 1D 輸出。 |
| leftJoystickLeft | 輸出至左搖桿左方向的極座標輸出。 |
| leftJoystickRight | 輸出至左搖桿右方向的極座標輸出。 |
| leftJoystickUp | 輸出至左搖桿上方向的極座標輸出。 |
| leftJoystickDown | 輸出至左搖桿下方向的極座標輸出。 |
| rightJoystickLeft | 輸出至右搖桿左方向的極座標輸出。 |
| rightJoystickRight | 輸出至右搖桿右方向的極座標輸出。 |
| rightJoystickUp | 輸出至右搖桿上方向的極座標輸出。 |
| rightJoystickDown | 輸出至右搖桿下方向的極座標輸出。 |
| relativeMouse | 輸出至滑鼠的 2D 輸出。 |
| relativeMouseX | 輸出至滑鼠 X 軸的 1D 輸出。 |
| relativeMouseY | 輸出至滑鼠 Y 軸的 2D 輸出。 |
| relativeMouseLeft | 輸出至滑鼠左方向的極座標輸出。 |
| relativeMouseRight | 輸出至滑鼠右方向的極座標輸出。 |
| relativeMouseUp | 輸出至滑鼠上方向的極座標輸出。 |
| relativeMouseDown | 輸出至滑鼠下方向的極座標輸出。 |

## 備註

2D 輸入必須對應到 2D 輸出，同樣地，1D 輸入必須對應到 1D 輸出，而單一方向必須對應到極座標輸出。

## 相關控制項

[加速計](https://docs.xbox.com/zh-TW/reference/system/touchadaptationkit/sensor-controls/game-streaming-touch-accelerometer.md)\
[陀螺儀](https://docs.xbox.com/zh-TW/reference/system/touchadaptationkit/sensor-controls/game-streaming-touch-gyroscope.md)\
[搖桿](https://docs.xbox.com/zh-TW/reference/system/touchadaptationkit/controls/game-streaming-touch-joystick.md)\
[油門](https://docs.xbox.com/zh-TW/reference/system/touchadaptationkit/controls/game-streaming-touch-throttle.md)
[觸控板](https://docs.xbox.com/zh-TW/reference/system/touchadaptationkit/controls/game-streaming-touch-touchpad.md)

## 另請參閱

[Touch Adaptation Kit 參考](https://docs.xbox.com/zh-TW/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview.md)\
[死區](https://docs.xbox.com/zh-TW/reference/system/touchadaptationkit/types/game-streaming-touch-deadzone.md)\
[回應曲線](https://docs.xbox.com/zh-TW/reference/system/touchadaptationkit/types/game-streaming-touch-responsecurve.md)


## Related topics

- [GameInputGamepadAxes](https://docs.xbox.com/zh-TW/reference/input/gameinput/enums/gameinputgamepadaxes.md)
- [分析配對佇列使用量](https://docs.xbox.com/zh-TW/services/playfab/multiplayer/matchmaking/usage.md)
- [無障礙功能標籤](https://docs.xbox.com/zh-TW/build/game-principles/accessibility/accessibility-feature-tags.md)
- [GameInput 感應器建立](https://docs.xbox.com/zh-TW/build/core-features/common/input/hardware/input-hardware-sensors.md)
- [觸控調整套件 (TAK) 參考](https://docs.xbox.com/zh-TW/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview.md)
