From eddbebde75ca4193588ec698c603d0429d43ac64 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Wed, 8 May 2024 17:19:16 +0700 Subject: [PATCH] Updated How to create custom touch control layout (markdown) --- How-to-create-custom-touch-control-layout.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/How-to-create-custom-touch-control-layout.md b/How-to-create-custom-touch-control-layout.md index 42b1c92..148a00d 100644 --- a/How-to-create-custom-touch-control-layout.md +++ b/How-to-create-custom-touch-control-layout.md @@ -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": {