From 43a42e3b71e9db145eeda2ca5d65a5e5dd26bcb2 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Fri, 9 Feb 2024 18:08:40 +0700 Subject: [PATCH] Update layout files --- touch-layouts/1610974574.json | 43 +-- touch-layouts/1797327516.json | 336 +------------------ touch-layouts/1985701699.json | 245 +------------- touch-layouts/1994003829.json | 176 +--------- touch-layouts/2008767227.json | 295 +--------------- touch-layouts/2030093255.json | 245 +------------- touch-layouts/2071676002.json | 176 +--------- touch-layouts/2122751230.json | 51 +-- touch-layouts/2136524032.json | 194 +---------- touch-layouts/374621264.json | 251 +------------- touch-layouts/918284490.json | 251 +------------- touch-layouts/layouts/a-short-hike.json | 50 +++ touch-layouts/layouts/brotato.json | 294 ++++++++++++++++ touch-layouts/layouts/chicory.json | 193 +++++++++++ touch-layouts/layouts/cocoon.json | 42 +++ touch-layouts/layouts/fifa.json | 173 ++++++++++ touch-layouts/layouts/forza-horizon-4-5.json | 244 ++++++++++++++ touch-layouts/layouts/palworld.json | 333 ++++++++++++++++++ touch-layouts/layouts/resident-evil-2.json | 250 ++++++++++++++ 19 files changed, 1615 insertions(+), 2227 deletions(-) create mode 100644 touch-layouts/layouts/a-short-hike.json create mode 100644 touch-layouts/layouts/brotato.json create mode 100644 touch-layouts/layouts/chicory.json create mode 100644 touch-layouts/layouts/cocoon.json create mode 100644 touch-layouts/layouts/fifa.json create mode 100644 touch-layouts/layouts/forza-horizon-4-5.json create mode 100644 touch-layouts/layouts/palworld.json create mode 100644 touch-layouts/layouts/resident-evil-2.json diff --git a/touch-layouts/1610974574.json b/touch-layouts/1610974574.json index 7fc0467..089da12 100644 --- a/touch-layouts/1610974574.json +++ b/touch-layouts/1610974574.json @@ -1,44 +1,7 @@ { - "schema_version": 2, "name": "Cocoon", "default_layout": "custom", - "layouts": { - "custom": { - "name": "Custom", - "content": { - "left": { - "inner": [ - { - "type": "joystick", - "axis": { - "input": "axisXY", - "output": "leftJoystick" - }, - "relative": false - } - ] - }, - "right": { - "inner": [ - { - "type": "button", - "action": "gamepadA" - } - ] - }, - "upper": { - "right": [ - { - "type": "button", - "action": "menu" - }, - { - "type": "button", - "action": "gamepadB" - } - ] - } - } - } - } + "layouts": [ + "cocoon" + ] } diff --git a/touch-layouts/1797327516.json b/touch-layouts/1797327516.json index 17f32d7..31d21cb 100644 --- a/touch-layouts/1797327516.json +++ b/touch-layouts/1797327516.json @@ -1,335 +1,7 @@ { - "schema_version": 2, "name": "Palworld", - "default_layout": "type-a", - "layouts": { - "type-a": { - "name": "Type A", - "content": { - "layers": { - "EnableGyro": { - "sensors": [ - { - "type": "gyroscope", - "axis": { - "input": "axisXY", - "output": "rightJoystick", - "sensitivity": 1 - } - } - ] - } - }, - "left": { - "inner": [ - { - "type": "joystick", - "axis": { - "input": "axisXY", - "output": "leftJoystick", - "deadzone": { - "threshold": 0.01, - "radial": true - } - }, - "action": "leftThumb", - "actionThreshold": 2, - "expand": false, - "styles": { - "default": { - "knob": { - "faceImage": { - "type": "icon", - "value": "walk" - } - } - }, - "activated": { - "knob": { - "faceImage": { - "type": "icon", - "value": "run" - } - } - } - } - } - ], - "outer": [ - null, - [ - { - "type": "joystick", - "axis": { - "input": "axisXY", - "output": "leftJoystick", - "deadzone": { - "threshold": -0.3, - "radial": true - } - }, - "action": [ - "rightTrigger", - { - "type": "layer", - "target": "EnableGyro" - } - ], - "styles": { - "default": { - "knob": { - "faceImage": { - "type": "icon", - "value": "rightTrigger" - }, - "stroke": { - "opacity": 0.1 - } - } - } - } - }, - null - ], - { - "type": "directionalPad", - "interaction": { - "activationType": "exclusive" - }, - "scale": 1.2 - }, - { - "type": "button", - "action": "rightThumb" - }, - { - "type": "joystick", - "axis": { - "input": "axisXY", - "output": "leftJoystick" - }, - "action": [ - "leftBumper", - { - "type": "layer", - "target": "EnableGyro" - } - ], - "styles": { - "default": { - "knob": { - "faceImage": { - "type": "icon", - "value": "leftBumper" - }, - "stroke": { - "opacity": 0.1 - } - } - } - } - }, - { - "type": "joystick", - "axis": { - "input": "axisXY", - "output": "leftJoystick" - }, - "action": [ - "rightBumper", - { - "type": "layer", - "target": "EnableGyro" - } - ], - "styles": { - "default": { - "knob": { - "faceImage": { - "type": "icon", - "value": "rightBumper" - }, - "stroke": { - "opacity": 0.1 - } - } - } - } - }, - { - "type": "joystick", - "axis": { - "input": "axisXY", - "output": "leftJoystick" - }, - "action": [ - "leftTrigger", - { - "type": "layer", - "target": "EnableGyro" - } - ], - "styles": { - "default": { - "knob": { - "faceImage": { - "type": "icon", - "value": "leftTrigger" - }, - "stroke": { - "opacity": 0.1 - } - } - } - } - } - ] - }, - "right": { - "inner": [ - { - "type": "joystick", - "axis": { - "input": "axisXY", - "output": "rightJoystick", - "deadzone": { - "threshold": 0.01, - "radial": true - } - }, - "styles": { - "default": { - "knob": { - "faceImage": { - "type": "icon", - "value": "look" - } - } - } - } - } - ], - "outer": [ - [ - { - "type": "button", - "action": [ - "leftTrigger", - { - "type": "layer", - "target": "EnableGyro" - } - ], - "styles": { - "default": { - "faceImage": { - "type": "icon", - "value": "aim" - } - } - }, - "toggle": true - }, - null - ], - { - "type": "button", - "action": "gamepadB", - "styles": { - "default": { - "faceImage": { - "type": "icon", - "value": "roll" - } - } - } - }, - { - "type": "button", - "action": "gamepadA", - "styles": { - "default": { - "faceImage": { - "type": "icon", - "value": "jump" - } - } - } - }, - { - "type": "blank" - }, - { - "type": "touchpad", - "axis": [ - { - "input": "axisX", - "output": "rightJoystickX", - "sensitivity": 20 - }, - { - "input": "axisY", - "output": "rightJoystickY", - "sensitivity": 10 - } - ], - "renderAsButton": true, - "action": [ - "rightTrigger", - "leftTrigger", - { - "type": "layer", - "target": "EnableGyro" - } - ], - "styles": { - "default": { - "faceImage": { - "type": "icon", - "value": "fire" - } - } - } - }, - { - "type": "button", - "action": "gamepadX", - "styles": { - "default": { - "faceImage": { - "type": "icon", - "value": "reload" - } - } - } - }, - { - "type": "button", - "action": "gamepadY", - "styles": { - "default": { - "faceImage": { - "type": "icon", - "value": "weaponSelect" - } - } - } - } - ] - }, - "upper": { - "right": [ - { - "type": "button", - "action": "menu" - }, - { - "type": "button", - "action": "view" - } - ] - } - } - } - } + "default_layout": "custom", + "layouts": [ + "palworld" + ] } diff --git a/touch-layouts/1985701699.json b/touch-layouts/1985701699.json index 41dffed..0737b76 100644 --- a/touch-layouts/1985701699.json +++ b/touch-layouts/1985701699.json @@ -1,246 +1,7 @@ { - "schema_version": 2, "name": "Forza Horizon 4", "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" - }, - "stroke": { - "opacity": 0.1 - } - }, - "outline": { - "opacity": 0 - } - } - } - }, - { - "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" - } - ] - } - } - } - } + "layouts": [ + "forza-horizon-4-5" + ] } diff --git a/touch-layouts/1994003829.json b/touch-layouts/1994003829.json index a606cee..fa0f0d5 100644 --- a/touch-layouts/1994003829.json +++ b/touch-layouts/1994003829.json @@ -1,175 +1,7 @@ { - "schema_version": 2, - "name": "FIFA 23 Xbox One", + "name": "FIFA 23 (Xbox One)", "default_layout": "custom", - "layouts": { - "custom": { - "name": "Custom", - "content": { - "left": { - "inner": [ - { - "type": "joystick", - "expand": false, - "axis": { - "input": "axisXY", - "output": "leftJoystick", - "deadzone": { - "threshold": 0.05, - "radial": true - } - } - } - ], - "outer": [ - { - "type": "joystick", - "axis": [ - { - "input": "axisXY", - "output": "leftJoystick" - } - ], - "action": "rightBumper", - "styles": { - "default": { - "knob": { - "faceImage": { - "type": "icon", - "value": "rightBumper" - }, - "stroke": { - "opacity": 0.1 - } - } - } - } - }, - [ - { - "type": "joystick", - "expand": false, - "axis": { - "input": "axisXY", - "output": "leftJoystick", - "deadzone": { - "threshold": 0.05, - "radial": true - } - }, - "action": "rightTrigger", - "styles": { - "default": { - "knob": { - "faceImage": { - "type": "icon", - "value": "rightTrigger" - }, - "stroke": { - "opacity": 0.1 - } - } - } - } - }, - null - ], - { - "type": "directionalPad", - "interaction": { - "activationType": "exclusive" - }, - "scale": 1.2 - }, - { - "type": "button", - "action": "leftThumb" - }, - { - "type": "button", - "action": "rightThumb" - }, - null, - { - "type": "joystick", - "axis": [ - { - "input": "axisXY", - "output": "leftJoystick" - } - ], - "action": "leftBumper", - "styles": { - "default": { - "knob": { - "faceImage": { - "type": "icon", - "value": "leftBumper" - }, - "stroke": { - "opacity": 0.1 - } - } - } - } - } - ] - }, - "right": { - "inner": [ - { - "type": "button", - "action": "gamepadY" - }, - { - "type": "button", - "action": "gamepadB" - }, - { - "type": "button", - "action": "gamepadA" - }, - { - "type": "button", - "action": "gamepadX" - } - ], - "outer": [ - null, - { - "type": "button", - "action": "leftTrigger" - }, - null, - null, - [ - { - "type": "joystick", - "axis": { - "input": "axisXY", - "output": "rightJoystick", - "deadzone": { - "threshold": 0.05, - "radial": true - } - } - } - ] - ] - }, - "upper": { - "right": [ - { - "type": "button", - "action": "menu" - }, - { - "type": "button", - "action": "view" - } - ] - } - } - } - } + "layouts": [ + "fifa" + ] } diff --git a/touch-layouts/2008767227.json b/touch-layouts/2008767227.json index 9811de4..780822f 100644 --- a/touch-layouts/2008767227.json +++ b/touch-layouts/2008767227.json @@ -1,296 +1,7 @@ { - "schema_version": 2, "name": "Brotato", "default_layout": "one-handed-left", - "layouts": { - "one-handed-left": { - "name": "One-handed (Left)", - "content": { - "left": { - "inner": [ - { - "type": "joystick", - "relative": false, - "axis": { - "input": "axisXY", - "output": "leftJoystick" - } - } - ], - "outer": [ - null, - { - "type": "button", - "action": "gamepadA", - "styles": { - "idle": { - "opacity": 0.5 - } - } - }, - [ - { - "type": "directionalPad", - "scale": 1.2, - "interaction": { - "activationType": "exclusive" - }, - "styles": { - "idle": { - "opacity": 0.5 - } - } - } - ], - null, - null, - { - "type": "button", - "action": "leftBumper", - "styles": { - "idle": { - "opacity": 0.5 - } - } - }, - { - "type": "button", - "action": "gamepadB", - "styles": { - "idle": { - "opacity": 0.5 - } - } - } - ] - }, - "upper": { - "right": [ - { - "type": "button", - "action": "menu" - } - ] - } - } - }, - "one-handed-right": { - "name": "One-handed (Right)", - "content": { - "right": { - "inner": [ - { - "type": "joystick", - "relative": false, - "axis": { - "input": "axisXY", - "output": "leftJoystick" - } - } - ], - "outer": [ - { - "type": "button", - "action": "gamepadB", - "styles": { - "idle": { - "opacity": 0.5 - } - } - }, - { - "type": "button", - "action": "rightBumper", - "styles": { - "idle": { - "opacity": 0.5 - } - } - }, - null, - null, - [ - { - "type": "directionalPad", - "scale": 1.2, - "interaction": { - "activationType": "exclusive" - }, - "styles": { - "idle": { - "opacity": 0.5 - } - } - } - ], - { - "type": "button", - "action": "gamepadA", - "styles": { - "idle": { - "opacity": 0.5 - } - } - } - ] - }, - "upper": { - "right": [ - { - "type": "button", - "action": "menu" - } - ] - } - } - }, - "simplified": { - "name": "Simplified", - "content": { - "left": { - "inner": [ - { - "type": "joystick", - "relative": false, - "axis": { - "input": "axisXY", - "output": "leftJoystick" - } - } - ], - "outer": [ - null, - null, - [ - { - "type": "directionalPad", - "scale": 1.2, - "interaction": { - "activationType": "exclusive" - }, - "styles": { - "idle": { - "opacity": 0.5 - } - } - } - ] - ] - }, - "right": { - "inner": [ - { - "type": "button", - "action": "gamepadA" - } - ], - "outer": [ - { - "type": "blank" - }, - { - "type": "button", - "action": "gamepadB" - } - ] - }, - "upper": { - "right": [ - { - "type": "button", - "action": "menu" - }, - { - "type": "button", - "action": "rightBumper" - } - ] - } - } - }, - "simplified-full": { - "name": "Simplified (2 joysticks)", - "content": { - "left": { - "inner": [ - { - "type": "joystick", - "relative": false, - "axis": { - "input": "axisXY", - "output": "leftJoystick" - } - } - ], - "outer": [ - null, - null, - [ - { - "type": "directionalPad", - "scale": 1.2, - "interaction": { - "activationType": "exclusive" - }, - "styles": { - "idle": { - "opacity": 0.5 - } - } - } - ] - ] - }, - "right": { - "inner": [ - { - "type": "button", - "action": "gamepadA" - } - ], - "outer": [ - { - "type": "blank" - }, - { - "type": "button", - "action": "gamepadB" - }, - null, - { - "type": "blank" - }, - [ - { - "type": "joystick", - "axis": { - "input": "axisXY", - "output": "rightJoystick" - }, - "styles": { - "idle": { - "knob": { - "opacity": 0.5 - } - } - } - } - ] - ] - }, - "upper": { - "right": [ - { - "type": "button", - "action": "menu" - }, - { - "type": "button", - "action": "rightBumper" - } - ] - } - } - } - } + "layouts": [ + "brotato" + ] } diff --git a/touch-layouts/2030093255.json b/touch-layouts/2030093255.json index 94daec8..b82dfa8 100644 --- a/touch-layouts/2030093255.json +++ b/touch-layouts/2030093255.json @@ -1,246 +1,7 @@ { - "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" - }, - "stroke": { - "opacity": 0.1 - } - }, - "outline": { - "opacity": 0 - } - } - } - }, - { - "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" - } - ] - } - } - } - } + "layouts": [ + "forza-horizon-4-5" + ] } diff --git a/touch-layouts/2071676002.json b/touch-layouts/2071676002.json index 7be8d58..303ebb1 100644 --- a/touch-layouts/2071676002.json +++ b/touch-layouts/2071676002.json @@ -1,175 +1,7 @@ { - "schema_version": 2, - "name": "FIFA 23 Xbox Series", + "name": "FIFA 23 (Xbox Series)", "default_layout": "custom", - "layouts": { - "custom": { - "name": "Custom", - "content": { - "left": { - "inner": [ - { - "type": "joystick", - "expand": false, - "axis": { - "input": "axisXY", - "output": "leftJoystick", - "deadzone": { - "threshold": 0.05, - "radial": true - } - } - } - ], - "outer": [ - { - "type": "joystick", - "axis": [ - { - "input": "axisXY", - "output": "leftJoystick" - } - ], - "action": "rightBumper", - "styles": { - "default": { - "knob": { - "faceImage": { - "type": "icon", - "value": "rightBumper" - }, - "stroke": { - "opacity": 0.1 - } - } - } - } - }, - [ - { - "type": "joystick", - "expand": false, - "axis": { - "input": "axisXY", - "output": "leftJoystick", - "deadzone": { - "threshold": 0.05, - "radial": true - } - }, - "action": "rightTrigger", - "styles": { - "default": { - "knob": { - "faceImage": { - "type": "icon", - "value": "rightTrigger" - }, - "stroke": { - "opacity": 0.1 - } - } - } - } - }, - null - ], - { - "type": "directionalPad", - "interaction": { - "activationType": "exclusive" - }, - "scale": 1.2 - }, - { - "type": "button", - "action": "leftThumb" - }, - { - "type": "button", - "action": "rightThumb" - }, - null, - { - "type": "joystick", - "axis": [ - { - "input": "axisXY", - "output": "leftJoystick" - } - ], - "action": "leftBumper", - "styles": { - "default": { - "knob": { - "faceImage": { - "type": "icon", - "value": "leftBumper" - }, - "stroke": { - "opacity": 0.1 - } - } - } - } - } - ] - }, - "right": { - "inner": [ - { - "type": "button", - "action": "gamepadY" - }, - { - "type": "button", - "action": "gamepadB" - }, - { - "type": "button", - "action": "gamepadA" - }, - { - "type": "button", - "action": "gamepadX" - } - ], - "outer": [ - null, - { - "type": "button", - "action": "leftTrigger" - }, - null, - null, - [ - { - "type": "joystick", - "axis": { - "input": "axisXY", - "output": "rightJoystick", - "deadzone": { - "threshold": 0.05, - "radial": true - } - } - } - ] - ] - }, - "upper": { - "right": [ - { - "type": "button", - "action": "menu" - }, - { - "type": "button", - "action": "view" - } - ] - } - } - } - } + "layouts": [ + "fifa" + ] } diff --git a/touch-layouts/2122751230.json b/touch-layouts/2122751230.json index 4734b93..168f203 100644 --- a/touch-layouts/2122751230.json +++ b/touch-layouts/2122751230.json @@ -1,52 +1,7 @@ { - "schema_version": 2, "name": "A Short Hike", "default_layout": "custom", - "layouts": { - "custom": { - "name": "Custom", - "content": { - "left": { - "inner": [ - { - "type": "joystick", - "axis": { - "input": "axisXY", - "output": "leftJoystick" - }, - "relative": false - } - ] - }, - "right": { - "inner": [ - { - "type": "button", - "action": "gamepadY" - }, - { - "type": "button", - "action": "gamepadB" - }, - { - "type": "button", - "action": "gamepadA" - }, - { - "type": "button", - "action": "gamepadX" - } - ] - }, - "upper": { - "right": [ - { - "type": "button", - "action": "menu" - } - ] - } - } - } - } + "layouts": [ + "a-short-hike" + ] } diff --git a/touch-layouts/2136524032.json b/touch-layouts/2136524032.json index 8165aa0..57b1cc4 100644 --- a/touch-layouts/2136524032.json +++ b/touch-layouts/2136524032.json @@ -1,195 +1,7 @@ { - "schema_version": 2, "name": "Chicory", "default_layout": "custom", - "layouts": { - "custom": { - "name": "Custom", - "content": { - "left": { - "inner": [ - { - "type": "joystick", - "axis": { - "input": "axisXY", - "output": "leftJoystick" - }, - "relative": false, - "styles": { - "default": { - "outline": { - "stroke": { - "type": "solid", - "color": "#ff0000aa" - } - }, - "knob": { - "background": { - "type": "color", - "value": "#ff000033" - }, - "stroke": { - "type": "solid", - "color": "#ff0000aa" - } - } - } - } - } - ], - "outer": [ - { - "type": "button", - "action": "rightBumper", - "styles": { - "default": { - "background": { - "type": "color", - "value": "#ff000033" - } - } - } - }, - { - "type": "button", - "action": "rightTrigger", - "styles": { - "default": { - "background": { - "type": "color", - "value": "#ff000033" - } - } - } - }, - [ - { - "type": "directionalPad", - "interaction": { - "activationType": "exclusive" - }, - "styles": { - "default": { - "fill": "#ff000033", - "stroke": { - "type": "solid", - "color": "#ff0000aa" - } - } - } - } - ], - { - "type": "button", - "action": "rightThumb", - "styles": { - "default": { - "background": { - "type": "color", - "value": "#ff000033" - } - } - } - }, - null, - { - "type": "button", - "action": "leftTrigger", - "styles": { - "default": { - "background": { - "type": "color", - "value": "#ff000033" - } - } - } - }, - { - "type": "button", - "action": "leftBumper", - "styles": { - "default": { - "background": { - "type": "color", - "value": "#ff000033" - } - } - } - } - ] - }, - "right": { - "inner": [ - { - "type": "button", - "action": "gamepadY" - }, - { - "type": "button", - "action": "gamepadB" - }, - { - "type": "button", - "action": "gamepadA" - }, - { - "type": "button", - "action": "gamepadX" - } - ], - "outer": [ - null, - null, - null, - null, - [ - { - "type": "joystick", - "axis": { - "input": "axisXY", - "output": "rightJoystick", - "deadzone": { - "threshold": 0.05, - "radial": true - } - }, - "styles": { - "default": { - "outline": { - "stroke": { - "type": "solid", - "color": "#ff0000aa" - } - }, - "knob": { - "background": { - "type": "color", - "value": "#ff000033" - }, - "stroke": { - "type": "solid", - "color": "#ff0000aa" - } - } - } - } - } - ] - ] - }, - "upper": { - "right": [ - { - "type": "button", - "action": "menu" - }, - { - "type": "button", - "action": "view" - } - ] - } - } - } - } + "layouts": [ + "chicory" + ] } diff --git a/touch-layouts/374621264.json b/touch-layouts/374621264.json index b5b122d..294dfb5 100644 --- a/touch-layouts/374621264.json +++ b/touch-layouts/374621264.json @@ -1,252 +1,7 @@ { - "schema_version": 2, "name": "RESIDENT EVIL 2", "default_layout": "type-a", - "layouts": { - "type-a": { - "name": "Type A", - "content": { - "layers": { - "EnableGyro": { - "sensors": [ - { - "type": "gyroscope", - "axis": { - "input": "axisXY", - "output": "rightJoystick", - "sensitivity": 1 - } - } - ] - }, - "AimTouchpad": { - "right": { - "inner": [ - { - "type": "touchpad", - "axis": { - "input": "axisXY", - "output": "rightJoystick", - "sensitivity": 2 - }, - "styles": { - "default": { - "faceImage": { - "type": "icon", - "value": "aim" - } - } - } - } - ] - } - } - }, - "left": { - "inner": [ - { - "type": "joystick", - "axis": { - "input": "axisXY", - "output": "leftJoystick", - "deadzone": { - "threshold": 0.01, - "radial": true - } - }, - "expand": false - } - ], - "outer": [ - { - "type": "joystick", - "axis": { - "input": "axisXY", - "output": "leftJoystick" - }, - "action": [ - "leftBumper", - { - "type": "layer", - "target": "EnableGyro" - } - ], - "styles": { - "default": { - "knob": { - "faceImage": { - "type": "icon", - "value": "leftBumper" - }, - "stroke": { - "opacity": 0.1 - } - } - } - } - }, - [ - { - "type": "joystick", - "axis": { - "input": "axisXY", - "output": "leftJoystick" - }, - "action": [ - "leftTrigger", - { - "type": "layer", - "target": "EnableGyro" - }, - { - "type": "layer", - "target": "AimTouchpad" - } - ], - "styles": { - "default": { - "knob": { - "faceImage": { - "type": "icon", - "value": "leftTrigger" - }, - "stroke": { - "opacity": 0.1 - } - } - } - } - }, - null - ], - null, - { - "type": "button", - "action": "rightThumb" - }, - null, - [ - { - "type": "button", - "action": "rightBumper" - } - ], - null - ] - }, - "right": { - "inner": [ - { - "type": "joystick", - "axis": { - "input": "axisXY", - "output": "rightJoystick", - "deadzone": { - "threshold": 0.01, - "radial": true - } - } - } - ], - "outer": [ - [ - { - "type": "button", - "action": "gamepadY", - "styles": { - "default": { - "faceImage": { - "type": "icon", - "value": "inventory" - } - } - } - } - ], - { - "type": "button", - "action": "gamepadB" - }, - { - "type": "button", - "action": "gamepadA" - }, - [ - { - "type": "button", - "action": "leftThumb", - "styles": { - "default": { - "faceImage": { - "type": "icon", - "value": "run" - } - } - } - }, - null, - { - "type": "directionalPad", - "interaction": { - "activationType": "exclusive" - }, - "scale": 1.2 - }, - null - ], - { - "type": "touchpad", - "axis": [ - { - "input": "axisX", - "output": "rightJoystickX", - "sensitivity": 1 - }, - { - "input": "axisY", - "output": "rightJoystickY", - "sensitivity": 1 - } - ], - "renderAsButton": true, - "action": "rightTrigger" - }, - { - "type": "button", - "action": "gamepadX", - "styles": { - "default": { - "faceImage": { - "type": "icon", - "value": "reload" - } - } - } - }, - null - ] - }, - "upper": { - "right": [ - { - "type": "button", - "action": "menu" - }, - { - "type": "button", - "action": "view", - "styles": { - "default": { - "faceImage": { - "type": "icon", - "value": "map" - } - } - } - } - ] - } - } - } - } + "layouts": [ + "resident-evil-2" + ] } diff --git a/touch-layouts/918284490.json b/touch-layouts/918284490.json index 0032a1e..a910ee0 100644 --- a/touch-layouts/918284490.json +++ b/touch-layouts/918284490.json @@ -1,252 +1,7 @@ { - "schema_version": 2, "name": "RESIDENT EVIL 2 (JP Z Version)", "default_layout": "type-a", - "layouts": { - "type-a": { - "name": "Type A", - "content": { - "layers": { - "EnableGyro": { - "sensors": [ - { - "type": "gyroscope", - "axis": { - "input": "axisXY", - "output": "rightJoystick", - "sensitivity": 1 - } - } - ] - }, - "AimTouchpad": { - "right": { - "inner": [ - { - "type": "touchpad", - "axis": { - "input": "axisXY", - "output": "rightJoystick", - "sensitivity": 2 - }, - "styles": { - "default": { - "faceImage": { - "type": "icon", - "value": "aim" - } - } - } - } - ] - } - } - }, - "left": { - "inner": [ - { - "type": "joystick", - "axis": { - "input": "axisXY", - "output": "leftJoystick", - "deadzone": { - "threshold": 0.01, - "radial": true - } - }, - "expand": false - } - ], - "outer": [ - { - "type": "joystick", - "axis": { - "input": "axisXY", - "output": "leftJoystick" - }, - "action": [ - "leftBumper", - { - "type": "layer", - "target": "EnableGyro" - } - ], - "styles": { - "default": { - "knob": { - "faceImage": { - "type": "icon", - "value": "leftBumper" - }, - "stroke": { - "opacity": 0.1 - } - } - } - } - }, - [ - { - "type": "joystick", - "axis": { - "input": "axisXY", - "output": "leftJoystick" - }, - "action": [ - "leftTrigger", - { - "type": "layer", - "target": "EnableGyro" - }, - { - "type": "layer", - "target": "AimTouchpad" - } - ], - "styles": { - "default": { - "knob": { - "faceImage": { - "type": "icon", - "value": "leftTrigger" - }, - "stroke": { - "opacity": 0.1 - } - } - } - } - }, - null - ], - null, - { - "type": "button", - "action": "rightThumb" - }, - null, - [ - { - "type": "button", - "action": "rightBumper" - } - ], - null - ] - }, - "right": { - "inner": [ - { - "type": "joystick", - "axis": { - "input": "axisXY", - "output": "rightJoystick", - "deadzone": { - "threshold": 0.01, - "radial": true - } - } - } - ], - "outer": [ - [ - { - "type": "button", - "action": "gamepadY", - "styles": { - "default": { - "faceImage": { - "type": "icon", - "value": "inventory" - } - } - } - } - ], - { - "type": "button", - "action": "gamepadB" - }, - { - "type": "button", - "action": "gamepadA" - }, - [ - { - "type": "button", - "action": "leftThumb", - "styles": { - "default": { - "faceImage": { - "type": "icon", - "value": "run" - } - } - } - }, - null, - { - "type": "directionalPad", - "interaction": { - "activationType": "exclusive" - }, - "scale": 1.2 - }, - null - ], - { - "type": "touchpad", - "axis": [ - { - "input": "axisX", - "output": "rightJoystickX", - "sensitivity": 1 - }, - { - "input": "axisY", - "output": "rightJoystickY", - "sensitivity": 1 - } - ], - "renderAsButton": true, - "action": "rightTrigger" - }, - { - "type": "button", - "action": "gamepadX", - "styles": { - "default": { - "faceImage": { - "type": "icon", - "value": "reload" - } - } - } - }, - null - ] - }, - "upper": { - "right": [ - { - "type": "button", - "action": "menu" - }, - { - "type": "button", - "action": "view", - "styles": { - "default": { - "faceImage": { - "type": "icon", - "value": "map" - } - } - } - } - ] - } - } - } - } + "layouts": [ + "resident-evil-2" + ] } diff --git a/touch-layouts/layouts/a-short-hike.json b/touch-layouts/layouts/a-short-hike.json new file mode 100644 index 0000000..74c600d --- /dev/null +++ b/touch-layouts/layouts/a-short-hike.json @@ -0,0 +1,50 @@ +{ + "schema_version": 1, + "layouts": { + "custom": { + "name": "Custom", + "content": { + "left": { + "inner": [ + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "leftJoystick" + }, + "relative": false + } + ] + }, + "right": { + "inner": [ + { + "type": "button", + "action": "gamepadY" + }, + { + "type": "button", + "action": "gamepadB" + }, + { + "type": "button", + "action": "gamepadA" + }, + { + "type": "button", + "action": "gamepadX" + } + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": "menu" + } + ] + } + } + } + } +} diff --git a/touch-layouts/layouts/brotato.json b/touch-layouts/layouts/brotato.json new file mode 100644 index 0000000..fbf3b84 --- /dev/null +++ b/touch-layouts/layouts/brotato.json @@ -0,0 +1,294 @@ +{ + "schema_version": 1, + "layouts": { + "one-handed-left": { + "name": "One-handed (Left)", + "content": { + "left": { + "inner": [ + { + "type": "joystick", + "relative": false, + "axis": { + "input": "axisXY", + "output": "leftJoystick" + } + } + ], + "outer": [ + null, + { + "type": "button", + "action": "gamepadA", + "styles": { + "idle": { + "opacity": 0.5 + } + } + }, + [ + { + "type": "directionalPad", + "scale": 1.2, + "interaction": { + "activationType": "exclusive" + }, + "styles": { + "idle": { + "opacity": 0.5 + } + } + } + ], + null, + null, + { + "type": "button", + "action": "leftBumper", + "styles": { + "idle": { + "opacity": 0.5 + } + } + }, + { + "type": "button", + "action": "gamepadB", + "styles": { + "idle": { + "opacity": 0.5 + } + } + } + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": "menu" + } + ] + } + } + }, + "one-handed-right": { + "name": "One-handed (Right)", + "content": { + "right": { + "inner": [ + { + "type": "joystick", + "relative": false, + "axis": { + "input": "axisXY", + "output": "leftJoystick" + } + } + ], + "outer": [ + { + "type": "button", + "action": "gamepadB", + "styles": { + "idle": { + "opacity": 0.5 + } + } + }, + { + "type": "button", + "action": "rightBumper", + "styles": { + "idle": { + "opacity": 0.5 + } + } + }, + null, + null, + [ + { + "type": "directionalPad", + "scale": 1.2, + "interaction": { + "activationType": "exclusive" + }, + "styles": { + "idle": { + "opacity": 0.5 + } + } + } + ], + { + "type": "button", + "action": "gamepadA", + "styles": { + "idle": { + "opacity": 0.5 + } + } + } + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": "menu" + } + ] + } + } + }, + "simplified": { + "name": "Simplified", + "content": { + "left": { + "inner": [ + { + "type": "joystick", + "relative": false, + "axis": { + "input": "axisXY", + "output": "leftJoystick" + } + } + ], + "outer": [ + null, + null, + [ + { + "type": "directionalPad", + "scale": 1.2, + "interaction": { + "activationType": "exclusive" + }, + "styles": { + "idle": { + "opacity": 0.5 + } + } + } + ] + ] + }, + "right": { + "inner": [ + { + "type": "button", + "action": "gamepadA" + } + ], + "outer": [ + { + "type": "blank" + }, + { + "type": "button", + "action": "gamepadB" + } + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": "menu" + }, + { + "type": "button", + "action": "rightBumper" + } + ] + } + } + }, + "simplified-full": { + "name": "Simplified (2 joysticks)", + "content": { + "left": { + "inner": [ + { + "type": "joystick", + "relative": false, + "axis": { + "input": "axisXY", + "output": "leftJoystick" + } + } + ], + "outer": [ + null, + null, + [ + { + "type": "directionalPad", + "scale": 1.2, + "interaction": { + "activationType": "exclusive" + }, + "styles": { + "idle": { + "opacity": 0.5 + } + } + } + ] + ] + }, + "right": { + "inner": [ + { + "type": "button", + "action": "gamepadA" + } + ], + "outer": [ + { + "type": "blank" + }, + { + "type": "button", + "action": "gamepadB" + }, + null, + { + "type": "blank" + }, + [ + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "rightJoystick" + }, + "styles": { + "idle": { + "knob": { + "opacity": 0.5 + } + } + } + } + ] + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": "menu" + }, + { + "type": "button", + "action": "rightBumper" + } + ] + } + } + } + } +} diff --git a/touch-layouts/layouts/chicory.json b/touch-layouts/layouts/chicory.json new file mode 100644 index 0000000..1e26ce6 --- /dev/null +++ b/touch-layouts/layouts/chicory.json @@ -0,0 +1,193 @@ +{ + "schema_version": 1, + "layouts": { + "custom": { + "name": "Custom", + "content": { + "left": { + "inner": [ + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "leftJoystick" + }, + "relative": false, + "styles": { + "default": { + "outline": { + "stroke": { + "type": "solid", + "color": "#ff0000aa" + } + }, + "knob": { + "background": { + "type": "color", + "value": "#ff000033" + }, + "stroke": { + "type": "solid", + "color": "#ff0000aa" + } + } + } + } + } + ], + "outer": [ + { + "type": "button", + "action": "rightBumper", + "styles": { + "default": { + "background": { + "type": "color", + "value": "#ff000033" + } + } + } + }, + { + "type": "button", + "action": "rightTrigger", + "styles": { + "default": { + "background": { + "type": "color", + "value": "#ff000033" + } + } + } + }, + [ + { + "type": "directionalPad", + "interaction": { + "activationType": "exclusive" + }, + "styles": { + "default": { + "fill": "#ff000033", + "stroke": { + "type": "solid", + "color": "#ff0000aa" + } + } + } + } + ], + { + "type": "button", + "action": "rightThumb", + "styles": { + "default": { + "background": { + "type": "color", + "value": "#ff000033" + } + } + } + }, + null, + { + "type": "button", + "action": "leftTrigger", + "styles": { + "default": { + "background": { + "type": "color", + "value": "#ff000033" + } + } + } + }, + { + "type": "button", + "action": "leftBumper", + "styles": { + "default": { + "background": { + "type": "color", + "value": "#ff000033" + } + } + } + } + ] + }, + "right": { + "inner": [ + { + "type": "button", + "action": "gamepadY" + }, + { + "type": "button", + "action": "gamepadB" + }, + { + "type": "button", + "action": "gamepadA" + }, + { + "type": "button", + "action": "gamepadX" + } + ], + "outer": [ + null, + null, + null, + null, + [ + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "rightJoystick", + "deadzone": { + "threshold": 0.05, + "radial": true + } + }, + "styles": { + "default": { + "outline": { + "stroke": { + "type": "solid", + "color": "#ff0000aa" + } + }, + "knob": { + "background": { + "type": "color", + "value": "#ff000033" + }, + "stroke": { + "type": "solid", + "color": "#ff0000aa" + } + } + } + } + } + ] + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": "menu" + }, + { + "type": "button", + "action": "view" + } + ] + } + } + } + } +} diff --git a/touch-layouts/layouts/cocoon.json b/touch-layouts/layouts/cocoon.json new file mode 100644 index 0000000..a8edd26 --- /dev/null +++ b/touch-layouts/layouts/cocoon.json @@ -0,0 +1,42 @@ +{ + "schema_version": 1, + "layouts": { + "custom": { + "name": "Custom", + "content": { + "left": { + "inner": [ + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "leftJoystick" + }, + "relative": false + } + ] + }, + "right": { + "inner": [ + { + "type": "button", + "action": "gamepadA" + } + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": "menu" + }, + { + "type": "button", + "action": "gamepadB" + } + ] + } + } + } + } +} diff --git a/touch-layouts/layouts/fifa.json b/touch-layouts/layouts/fifa.json new file mode 100644 index 0000000..c0f5f19 --- /dev/null +++ b/touch-layouts/layouts/fifa.json @@ -0,0 +1,173 @@ +{ + "schema_version": 1, + "layouts": { + "custom": { + "name": "Custom", + "content": { + "left": { + "inner": [ + { + "type": "joystick", + "expand": false, + "axis": { + "input": "axisXY", + "output": "leftJoystick", + "deadzone": { + "threshold": 0.05, + "radial": true + } + } + } + ], + "outer": [ + { + "type": "joystick", + "axis": [ + { + "input": "axisXY", + "output": "leftJoystick" + } + ], + "action": "rightBumper", + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "rightBumper" + }, + "stroke": { + "opacity": 0.1 + } + } + } + } + }, + [ + { + "type": "joystick", + "expand": false, + "axis": { + "input": "axisXY", + "output": "leftJoystick", + "deadzone": { + "threshold": 0.05, + "radial": true + } + }, + "action": "rightTrigger", + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "rightTrigger" + }, + "stroke": { + "opacity": 0.1 + } + } + } + } + }, + null + ], + { + "type": "directionalPad", + "interaction": { + "activationType": "exclusive" + }, + "scale": 1.2 + }, + { + "type": "button", + "action": "leftThumb" + }, + { + "type": "button", + "action": "rightThumb" + }, + null, + { + "type": "joystick", + "axis": [ + { + "input": "axisXY", + "output": "leftJoystick" + } + ], + "action": "leftBumper", + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "leftBumper" + }, + "stroke": { + "opacity": 0.1 + } + } + } + } + } + ] + }, + "right": { + "inner": [ + { + "type": "button", + "action": "gamepadY" + }, + { + "type": "button", + "action": "gamepadB" + }, + { + "type": "button", + "action": "gamepadA" + }, + { + "type": "button", + "action": "gamepadX" + } + ], + "outer": [ + null, + { + "type": "button", + "action": "leftTrigger" + }, + null, + null, + [ + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "rightJoystick", + "deadzone": { + "threshold": 0.05, + "radial": true + } + } + } + ] + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": "menu" + }, + { + "type": "button", + "action": "view" + } + ] + } + } + } + } +} diff --git a/touch-layouts/layouts/forza-horizon-4-5.json b/touch-layouts/layouts/forza-horizon-4-5.json new file mode 100644 index 0000000..3c01602 --- /dev/null +++ b/touch-layouts/layouts/forza-horizon-4-5.json @@ -0,0 +1,244 @@ +{ + "schema_version": 1, + "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" + }, + "stroke": { + "opacity": 0.1 + } + }, + "outline": { + "opacity": 0 + } + } + } + }, + { + "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" + } + ] + } + } + } + } +} diff --git a/touch-layouts/layouts/palworld.json b/touch-layouts/layouts/palworld.json new file mode 100644 index 0000000..7494e0f --- /dev/null +++ b/touch-layouts/layouts/palworld.json @@ -0,0 +1,333 @@ +{ + "schema_version": 1, + "layouts": { + "custom": { + "name": "Custom", + "content": { + "layers": { + "EnableGyro": { + "sensors": [ + { + "type": "gyroscope", + "axis": { + "input": "axisXY", + "output": "rightJoystick", + "sensitivity": 1 + } + } + ] + } + }, + "left": { + "inner": [ + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "leftJoystick", + "deadzone": { + "threshold": 0.01, + "radial": true + } + }, + "action": "leftThumb", + "actionThreshold": 2, + "expand": false, + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "walk" + } + } + }, + "activated": { + "knob": { + "faceImage": { + "type": "icon", + "value": "run" + } + } + } + } + } + ], + "outer": [ + null, + [ + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "leftJoystick", + "deadzone": { + "threshold": -0.3, + "radial": true + } + }, + "action": [ + "rightTrigger", + { + "type": "layer", + "target": "EnableGyro" + } + ], + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "rightTrigger" + }, + "stroke": { + "opacity": 0.1 + } + } + } + } + }, + null + ], + { + "type": "directionalPad", + "interaction": { + "activationType": "exclusive" + }, + "scale": 1.2 + }, + { + "type": "button", + "action": "rightThumb" + }, + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "leftJoystick" + }, + "action": [ + "leftBumper", + { + "type": "layer", + "target": "EnableGyro" + } + ], + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "leftBumper" + }, + "stroke": { + "opacity": 0.1 + } + } + } + } + }, + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "leftJoystick" + }, + "action": [ + "rightBumper", + { + "type": "layer", + "target": "EnableGyro" + } + ], + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "rightBumper" + }, + "stroke": { + "opacity": 0.1 + } + } + } + } + }, + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "leftJoystick" + }, + "action": [ + "leftTrigger", + { + "type": "layer", + "target": "EnableGyro" + } + ], + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "leftTrigger" + }, + "stroke": { + "opacity": 0.1 + } + } + } + } + } + ] + }, + "right": { + "inner": [ + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "rightJoystick", + "deadzone": { + "threshold": 0.01, + "radial": true + } + }, + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "look" + } + } + } + } + } + ], + "outer": [ + [ + { + "type": "button", + "action": [ + "leftTrigger", + { + "type": "layer", + "target": "EnableGyro" + } + ], + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "aim" + } + } + }, + "toggle": true + }, + null + ], + { + "type": "button", + "action": "gamepadB", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "roll" + } + } + } + }, + { + "type": "button", + "action": "gamepadA", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "jump" + } + } + } + }, + { + "type": "blank" + }, + { + "type": "touchpad", + "axis": [ + { + "input": "axisX", + "output": "rightJoystickX", + "sensitivity": 20 + }, + { + "input": "axisY", + "output": "rightJoystickY", + "sensitivity": 10 + } + ], + "renderAsButton": true, + "action": [ + "rightTrigger", + "leftTrigger", + { + "type": "layer", + "target": "EnableGyro" + } + ], + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "fire" + } + } + } + }, + { + "type": "button", + "action": "gamepadX", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "reload" + } + } + } + }, + { + "type": "button", + "action": "gamepadY", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "weaponSelect" + } + } + } + } + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": "menu" + }, + { + "type": "button", + "action": "view" + } + ] + } + } + } + } +} diff --git a/touch-layouts/layouts/resident-evil-2.json b/touch-layouts/layouts/resident-evil-2.json new file mode 100644 index 0000000..8947012 --- /dev/null +++ b/touch-layouts/layouts/resident-evil-2.json @@ -0,0 +1,250 @@ +{ + "schema_version": 1, + "layouts": { + "type-a": { + "name": "Type A", + "content": { + "layers": { + "EnableGyro": { + "sensors": [ + { + "type": "gyroscope", + "axis": { + "input": "axisXY", + "output": "rightJoystick", + "sensitivity": 1 + } + } + ] + }, + "AimTouchpad": { + "right": { + "inner": [ + { + "type": "touchpad", + "axis": { + "input": "axisXY", + "output": "rightJoystick", + "sensitivity": 2 + }, + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "aim" + } + } + } + } + ] + } + } + }, + "left": { + "inner": [ + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "leftJoystick", + "deadzone": { + "threshold": 0.01, + "radial": true + } + }, + "expand": false + } + ], + "outer": [ + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "leftJoystick" + }, + "action": [ + "leftBumper", + { + "type": "layer", + "target": "EnableGyro" + } + ], + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "leftBumper" + }, + "stroke": { + "opacity": 0.1 + } + } + } + } + }, + [ + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "leftJoystick" + }, + "action": [ + "leftTrigger", + { + "type": "layer", + "target": "EnableGyro" + }, + { + "type": "layer", + "target": "AimTouchpad" + } + ], + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "leftTrigger" + }, + "stroke": { + "opacity": 0.1 + } + } + } + } + }, + null + ], + null, + { + "type": "button", + "action": "rightThumb" + }, + null, + [ + { + "type": "button", + "action": "rightBumper" + } + ], + null + ] + }, + "right": { + "inner": [ + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "rightJoystick", + "deadzone": { + "threshold": 0.01, + "radial": true + } + } + } + ], + "outer": [ + [ + { + "type": "button", + "action": "gamepadY", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "inventory" + } + } + } + } + ], + { + "type": "button", + "action": "gamepadB" + }, + { + "type": "button", + "action": "gamepadA" + }, + [ + { + "type": "button", + "action": "leftThumb", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "run" + } + } + } + }, + null, + { + "type": "directionalPad", + "interaction": { + "activationType": "exclusive" + }, + "scale": 1.2 + }, + null + ], + { + "type": "touchpad", + "axis": [ + { + "input": "axisX", + "output": "rightJoystickX", + "sensitivity": 1 + }, + { + "input": "axisY", + "output": "rightJoystickY", + "sensitivity": 1 + } + ], + "renderAsButton": true, + "action": "rightTrigger" + }, + { + "type": "button", + "action": "gamepadX", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "reload" + } + } + } + }, + null + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": "menu" + }, + { + "type": "button", + "action": "view", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "map" + } + } + } + } + ] + } + } + } + } +}