Updated How to create custom touch control layout (markdown)

redphx 2024-05-08 17:19:16 +07:00
parent 15ecb87701
commit eddbebde75

@ -146,9 +146,9 @@ Here is the default layout if you need it:
3. Load the game you want to create custom layout for. It must not having official touch support. In this guide I'll pick [DOOM (1993)](https://www.xbox.com/en-US/play/games/doom-1993/9PLZPHBNHTMF).
![image](https://github.com/redphx/better-xcloud/assets/96280/d57753b2-3b2b-4ed9-89bf-35ad4a6d99cd)
4. Switch to `Console panel` in `Chrome DevTools`. Click on the 🚫 button to clear the console.
5. We'll pass the custom layout to the `BX_EXPOSED.test_touch_control()` function to test it. Paste the entire content of the layout that you created in VS Code to the console, then press Enter:
5. We'll pass the custom layout to the `testTouchLayout()` function to test it. Paste the entire content of the layout that you created in VS Code to the console, then press Enter:
```javascript
BX_EXPOSED.test_touch_control(
testTouchLayout(
{
"$schema": "https://raw.githubusercontent.com/microsoft/xbox-game-streaming-tools/main/touch-adaptation-kit/schemas/layout/v4.0/layout.json",
"content": {