From 00adee7d7f88abc0c38afc884c434b546e20f238 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sat, 10 Feb 2024 17:08:40 +0700 Subject: [PATCH] Go Mecha Ball: add layout --- touch-layouts/1844195280.json | 7 ++ touch-layouts/layouts/go-mecha-ball.json | 142 +++++++++++++++++++++++ 2 files changed, 149 insertions(+) create mode 100644 touch-layouts/1844195280.json create mode 100644 touch-layouts/layouts/go-mecha-ball.json diff --git a/touch-layouts/1844195280.json b/touch-layouts/1844195280.json new file mode 100644 index 0000000..cb75c9b --- /dev/null +++ b/touch-layouts/1844195280.json @@ -0,0 +1,7 @@ +{ + "name": "Go Mecha Ball", + "default_layout": "custom", + "layouts": [ + "go-mecha-ball" + ] +} diff --git a/touch-layouts/layouts/go-mecha-ball.json b/touch-layouts/layouts/go-mecha-ball.json new file mode 100644 index 0000000..7d749ac --- /dev/null +++ b/touch-layouts/layouts/go-mecha-ball.json @@ -0,0 +1,142 @@ +{ + "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 + } + }, + "action": "leftTrigger", + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "leftTrigger" + } + } + } + } + } + ], + "outer": [ + null, + null, + [ + { + "type": "joystick", + "expand": false, + "axis": { + "input": "axisXY", + "output": "leftJoystick", + "deadzone": { + "threshold": 0.05, + "radial": true + } + } + } + ], + null, + null, + { + "type": "button", + "action": "gamepadX", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "weaponSelect" + } + } + } + } + ] + }, + "right": { + "inner": [ + { + "type": "joystick", + "expand": false, + "axis": { + "input": "axisXY", + "output": "rightJoystick", + "deadzone": { + "threshold": 0.05, + "radial": true + } + }, + "action": "rightTrigger", + "actionThreshold": 2, + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "aim" + } + } + }, + "activated": { + "knob": { + "faceImage": { + "type": "icon", + "value": "rightTrigger" + } + } + } + } + } + ], + "outer": [ + { + "type": "button", + "action": "rightBumper" + }, + { + "type": "button", + "action": "gamepadB" + }, + null, + { + "type": "button", + "action": "gamepadA" + }, + null, + { + "type": "button", + "action": "rightTrigger" + }, + null, + { + "type": "button", + "action": "leftBumper" + } + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": "menu" + }, + { + "type": "button", + "action": "view" + } + ] + } + } + } + } +}