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

# 建置觸控控制項配置

> 建置觸控控制項配置

建置觸控控制項配置包括建立一個[觸控調整套件組合](/zh-TW/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-bundle)，其中包含：

* `takxconfig.json` 檔案，以 JSON 表示套件組合的所有中繼資料和屬性
* 配置集合，其中每個配置檔案都以 JSON 表示玩家在遊戲中特定情境下可使用的控制項
* 內容 (Context) 檔案，以 JSON 表示配置所使用的全域狀態和屬性
* 這些配置所參考的任何自訂資產

## 開始使用

建立[觸控調整套件組合](/zh-TW/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-bundle)最簡單的方式是使用 [create 命令](/zh-TW/build/core-features/common/game-streaming/tak-command-line-tool/game-streaming-tak-command-line-create-command)。此命令可用來輕鬆建立開始使用觸控調整套件所需的所有檔案和資料夾。除了能建立完整的套件組合之外，create 命令也可以根據適用於不同遊戲類型和遊戲情境的範本配置，建立單一配置檔案。

## 觸控套件組合 JSON 結構描述

各種 JSON 檔案 (例如配置或內容檔案) 會使用 JSON 結構描述檔案，提供如何撰寫有效檔案的結構和規則。這些結構描述檔案以多種語言裝載於 [XBOX Game Streaming Tools Github](https://github.com/microsoft/xbox-game-streaming-tools/tree/main/touch-adaptation-kit/schemas)。這些特定語言的結構描述可在 [Visual Studio Code](https://code.visualstudio.com/download) 等工具中使用，以該語言取得有關結構描述屬性和問題的 Intellisense。若要使用當地語系化版本的結構描述檔案，只需將檔案中的 `$schema` 屬性設定為指向當地語系化版本即可。例如，下列範例 JSON 和影像顯示內容檔案中 `state` 屬性的日文說明文字。

```JSON theme={null}
//Example context file
{
  "$schema": "https://raw.githubusercontent.com/microsoft/xbox-game-streaming-tools/main/touch-adaptation-kit/schemas/ja-JP/context/v4.0/context.json",

  "state": {
    "enableReload": false
  }
}
```

<img src="https://mintcdn.com/microsoft-4404708b/UZTRJSf0emX1fheE/images/gdk/features/common/game-streaming-tak-vscode-intellisense.png?fit=max&auto=format&n=UZTRJSf0emX1fheE&q=85&s=fd518d059cf0dba1260bddf95bc71960" alt="Visual Studio Code 日文 Intellisense 的螢幕擷取畫面" width="1276" height="480" data-path="images/gdk/features/common/game-streaming-tak-vscode-intellisense.png" />


## Related topics

- [Windows 與 ROG XBOX Ally 總覽](/zh-TW/paths/windows/overview.md)
- [标准 XBOX 控制器触控控制布局](/zh-CN/build/core-features/common/game-streaming/building-touch-layouts/samples/game-streaming-touch-tak-sample-full-layout.md)
- [驾驶类触控控制布局](/zh-CN/build/core-features/common/game-streaming/building-touch-layouts/samples/game-streaming-touch-tak-sample-driving.md)
- [格斗类触控控制布局](/zh-CN/build/core-features/common/game-streaming/building-touch-layouts/samples/game-streaming-touch-tak-sample-fighter.md)
- [第一人称射击触控控制布局](/zh-CN/build/core-features/common/game-streaming/building-touch-layouts/samples/game-streaming-touch-tak-sample-first-person.md)
