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

# 加速計

> 加速計 (實驗性)

# 加速計 (實驗性)

將用戶端裝置的加速計 (若有的話) 對應到指定軸組的感應器控制項。

> [!WARNING]
>
> 加速計控制項目前以實驗性形式提供使用，其行為可能會根據早期採用者的意見反應而變更。

## 屬性

`type` - "accelerometer"

`axis` - *object* 或 *array*。描述此觸控板控制項對應的單一[軸](https://docs.xbox.com/zh-TW/reference/system/touchadaptationkit/types/game-streaming-touch-axis.md)或[軸](https://docs.xbox.com/zh-TW/reference/system/touchadaptationkit/types/game-streaming-touch-axis.md)陣列。

## 備註

> [!WARNING]
>
> 並非所有支援觸控配置的裝置都提供加速計控制項。

`accelerometer` 控制項可用於在支援加速計的裝置上提供最佳化的體驗。

## 範例

```JSON theme={null}
Map the acceleration of the device to the right joystick's Y axis, using a specified sensitivity.
{
    "type": "accelerometer",
    "axis": {
        "input": "axisY",
        "output": "rightJoystick",
        "sensitivity": 3.5
    },
}
```

## 需求

**配置版本：** 1.0+


## Related topics

- [Touch Adaptation Kit](https://docs.xbox.com/zh-TW/reference/system/touchadaptationkit/touchadaptationkit-reference.md)
- [軸](https://docs.xbox.com/zh-TW/reference/system/touchadaptationkit/types/game-streaming-touch-axis.md)
- [死區](https://docs.xbox.com/zh-TW/reference/system/touchadaptationkit/types/game-streaming-touch-deadzone.md)
- [ResponseCurve](https://docs.xbox.com/zh-TW/reference/system/touchadaptationkit/types/game-streaming-touch-responsecurve.md)
- [觸控調整套件 (TAK) 參考](https://docs.xbox.com/zh-TW/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview.md)
