mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Updated How to create custom touch control layout (markdown)
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).
|
||||

|
||||
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": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user