Updated How to create custom touch control layout (markdown)

redphx 2024-05-08 18:00:22 +07:00
parent eddbebde75
commit e169e28d77

@ -163,9 +163,11 @@ testTouchLayout(
2. Add `"name": "Layout Name"` line into the layout (Replace "Layout Name" with the real name)
3. Fork the [`gh-pages`](https://github.com/redphx/better-xcloud/tree/gh-pages) branch:
3. Add `"author": "Author Name"` line into the layout (Replace "Author Name" with your username)
4. Create two files: `touch-layouts/<XBOX_TITLE_ID>.json` and `touch-layouts/layouts/<LAYOUT_FILE_NAME>.json`
4. Fork the [`gh-pages`](https://github.com/redphx/better-xcloud/tree/gh-pages) branch:
5. Create two files: `touch-layouts/<XBOX_TITLE_ID>.json` and `touch-layouts/layouts/<LAYOUT_FILE_NAME>.json`
- `<XBOX_TITLE_ID>.json`:
- To find the value of `XBOX_TITLE_ID`:
1. Find the game on [dbox.tools](https://dbox.tools). [Here](https://dbox.tools/store/products/9PLZPHBNHTMF/) is the page for DOOM 1993.
@ -192,9 +194,9 @@ testTouchLayout(
}
```
5. ⚠️ Use [DuckDuckGo's JSON Beautifier tool](https://duckduckgo.com/?t=ffab&q=format+json&ia=answer) (indent with 2 spaces) to beautify & validate the JSON files. Copy the result and paste it back into the layout file.
6. ⚠️ Use [DuckDuckGo's JSON Beautifier tool](https://duckduckgo.com/?t=ffab&q=format+json&ia=answer) (indent with 2 spaces) to beautify & validate the JSON files. Copy the result and paste it back into the layout file.
6. Create a pull request including the screenshot of the layout. Chrome/Edge has a built-in screenshot feature:
7. Create a pull request including the screenshot of the layout. Chrome/Edge has a built-in screenshot feature:
<img width="366" alt="Screenshot 2024-03-10 at 10 39 49" src="https://github.com/redphx/better-xcloud/assets/96280/cb6d0211-9f6b-4a37-ae84-f6df5c14d7bf">
7. Done! That's the basic of it. I'll update with more details later.
8. Done! That's the basic of it. I'll update with more details later.