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

# 建置觸控控制項配置

> 建置觸控控制項配置

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

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

## 開始使用

建立[觸控調整套件組合](https://docs.xbox.com/zh-TW/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-bundle.md)最簡單的方式是使用 [create 命令](https://docs.xbox.com/zh-TW/build/core-features/common/game-streaming/tak-command-line-tool/game-streaming-tak-command-line-create-command.md)。此命令可用來輕鬆建立開始使用觸控調整套件所需的所有檔案和資料夾。除了能建立完整的套件組合之外，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
  }
}
```

![Visual Studio Code 日文 Intellisense 的螢幕擷取畫面](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)


## Related topics

- [使用 GitHub Copilot 建立自訂觸控控制項配置](https://docs.xbox.com/zh-TW/build/core-features/common/game-streaming/building-touch-layouts/game-streaming-build-touch-layout-github-copilot.md)
- [為 XBOX 遊戲串流建置觸控控制配置](https://docs.xbox.com/zh-TW/build/core-features/common/game-streaming/building-touch-layouts/index.md)
- [建置觸控控制項的設計師指南](https://docs.xbox.com/zh-TW/build/core-features/common/game-streaming/building-touch-layouts/game-streaming-tak-designers-guide.md)
- [格鬥遊戲觸控控制配置](https://docs.xbox.com/zh-TW/build/core-features/common/game-streaming/building-touch-layouts/samples/game-streaming-touch-tak-sample-fighter.md)
- [使用 Tak CLI 部署觸控控制配置](https://docs.xbox.com/zh-TW/build/core-features/common/game-streaming/building-touch-layouts/game-streaming-touch-deploying-touch-layout.md)
