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

# 加速計 (實驗性)

> 加速計 (實驗性)

# 加速計 (實驗性)

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

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

## 屬性

`type` - "accelerometer"

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

## 備註

<Warning>並非所有支援觸控配置的裝置都提供加速計控制項。</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

- [安裝 GDK 工具鏈](/zh-TW/home/setup-install/download-install.md)
- [D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESC (XBOX Series consoles)](/zh-CN/reference/graphics/d3d12/structs/d3d12_raytracing_acceleration_structure_postbuild_info_serialization_desc_public.md)
- [D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE](/zh-CN/reference/graphics/d3d12/enums/d3d12_raytracing_acceleration_structure_type_public.md)
- [D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESC (XBOX Series consoles)](/zh-CN/reference/graphics/d3d12/structs/d3d12_raytracing_acceleration_structure_postbuild_info_compacted_size_desc_public.md)
- [使用 PlayFab 加入後端服務](/zh-TW/home/build-first-title/add-backend-services.md)
