From 0c495106ea9fa7d16cafbabdbd04bb8362a2bde0 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Thu, 8 Feb 2024 21:58:17 +0700 Subject: [PATCH] Forza Horizon 5: add layout --- touch-layouts/2030093255.json | 240 ++++++++++++++++++++++++++++++++++ 1 file changed, 240 insertions(+) create mode 100644 touch-layouts/2030093255.json diff --git a/touch-layouts/2030093255.json b/touch-layouts/2030093255.json new file mode 100644 index 0000000..4fe6efb --- /dev/null +++ b/touch-layouts/2030093255.json @@ -0,0 +1,240 @@ +{ + "schema_version": 2, + "name": "Forza Horizon 5", + "default_layout": "custom", + "layouts": { + "custom": { + "name": "Custom", + "content": { + "layers": { + "dPadDisplay": { + "right": { + "inner": [ + { + "type": "directionalPad", + "scale": 1.75, + "interaction": { + "activationType": "exclusive" + } + } + ], + "outer": [ + { + "type": "blank" + }, + { + "type": "blank" + }, + { + "type": "blank" + }, + { + "type": "blank" + }, + { + "type": "blank" + }, + { + "type": "blank" + }, + { + "type": "blank" + } + ] + } + } + }, + "left": { + "inner": [ + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "leftJoystick", + "deadzone": { + "threshold": 0.1, + "radial": true + } + }, + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "steering" + } + } + } + } + } + ], + "outer": [ + { + "type": "button", + "action": "leftBumper" + }, + null, + [ + { + "type": "button", + "action": "rightThumb" + }, + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "rightJoystick", + "deadzone": { + "threshold": 0.1, + "radial": true + } + }, + "relative": false, + "expand": false, + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "switchCamera" + } + } + } + } + }, + { + "type": "button", + "action": "rightBumper" + } + ], + [ + { + "type": "button", + "action": { + "type": "layer", + "target": "dPadDisplay" + }, + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "dPad" + } + } + } + }, + null + ], + [ + { + "type": "button", + "action": "leftThumb" + }, + null + ] + ] + }, + "right": { + "inner": [ + { + "type": "button", + "action": "rightTrigger", + "pullAction": "gamepadA", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "gasPedal" + } + } + } + } + ], + "outer": [ + [ + { + "type": "button", + "action": "gamepadB", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "add" + } + } + } + }, + null + ], + { + "type": "button", + "action": "gamepadA", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "handbrake2" + } + } + } + }, + [ + { + "type": "button", + "action": "leftTrigger", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "brakePedal" + } + } + } + }, + null + ], + { + "type": "button", + "action": "gamepadX", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "subtract" + } + } + } + }, + [ + { + "type": "button", + "action": "gamepadY", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "repeatRefresh" + } + } + } + }, + null + ] + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": "menu" + }, + { + "type": "button", + "action": "view" + } + ] + } + } + } + } +}