From 3deaa97cf74a9c61868a63b19a590b1f5f160482 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Tue, 30 Jan 2024 15:40:23 +0700 Subject: [PATCH] Brotato: add multiple layouts --- touch-layouts/dev/2008767227.json | 279 ++++++++++++++++++++++++++++++ 1 file changed, 279 insertions(+) create mode 100644 touch-layouts/dev/2008767227.json diff --git a/touch-layouts/dev/2008767227.json b/touch-layouts/dev/2008767227.json new file mode 100644 index 0000000..be5b27f --- /dev/null +++ b/touch-layouts/dev/2008767227.json @@ -0,0 +1,279 @@ +{ + "schema_version": 2, + "name": "Brotato", + "default_layout": "one-hand-left", + "layouts": { + "default": { + "name": "Default", + "content": { + "left": { + "inner": [ + { + "type": "joystick", + "relative": false, + "axis": { + "input": "axisXY", + "output": "leftJoystick" + } + } + ], + "outer": [ + null, + null, + [ + { + "type": "directionalPad", + "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" + } + ] + } + } + }, + "default-aim": { + "name": "Default with Aim", + "content": { + "left": { + "inner": [ + { + "type": "joystick", + "relative": false, + "axis": { + "input": "axisXY", + "output": "leftJoystick" + } + } + ], + "outer": [ + null, + null, + [ + { + "type": "directionalPad", + "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" + } + ] + } + } + }, + "one-hand-left": { + "name": "One hand (Left)", + "content": { + "left": { + "inner": [ + { + "type": "joystick", + "relative": false, + "axis": { + "input": "axisXY", + "output": "leftJoystick" + } + } + ], + "outer": [ + null, + null, + [ + { + "type": "directionalPad", + "styles": { + "idle": { + "opacity": 0.5 + } + } + } + ], + null, + { + "type": "button", + "action": "gamepadA", + "styles": { + "idle": { + "opacity": 0.5 + } + } + }, + { + "type": "button", + "action": "gamepadB", + "styles": { + "idle": { + "opacity": 0.5 + } + } + }, + { + "type": "button", + "action": "rightBumper", + "styles": { + "idle": { + "opacity": 0.5 + } + } + } + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": "menu" + } + ] + } + } + }, + "one-hand-right": { + "name": "One hand (Right)", + "content": { + "right": { + "inner": [ + { + "type": "joystick", + "relative": false, + "axis": { + "input": "axisXY", + "output": "leftJoystick" + } + } + ], + "outer": [ + { + "type": "button", + "action": "rightBumper", + "styles": { + "idle": { + "opacity": 0.5 + } + } + }, + { + "type": "button", + "action": "gamepadB", + "styles": { + "idle": { + "opacity": 0.5 + } + } + }, + { + "type": "button", + "action": "gamepadA", + "styles": { + "idle": { + "opacity": 0.5 + } + } + }, + null, + [ + { + "type": "directionalPad", + "styles": { + "idle": { + "opacity": 0.5 + } + } + } + ] + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": "menu" + } + ] + } + } + } + } +}