From 124a7c60dec7c071d46a138530eb3009267fde13 Mon Sep 17 00:00:00 2001 From: Kode-Z <162533196+Kode-Z@users.noreply.github.com> Date: Fri, 23 May 2025 09:41:12 +0100 Subject: [PATCH] =?UTF-8?q?Custom=20touch=20control=20for=20=E2=80=9CResid?= =?UTF-8?q?ent=20Evil=E2=80=9D=20(#722)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add files via upload * Add files via upload * Update 1278031123.json --- touch-layouts/1278031123.json | 7 + touch-layouts/layouts/resident-evil.json | 229 +++++++++++++++++++++++ 2 files changed, 236 insertions(+) create mode 100644 touch-layouts/1278031123.json create mode 100644 touch-layouts/layouts/resident-evil.json diff --git a/touch-layouts/1278031123.json b/touch-layouts/1278031123.json new file mode 100644 index 0000000..7c493b6 --- /dev/null +++ b/touch-layouts/1278031123.json @@ -0,0 +1,7 @@ +{ + "name": "Resident Evil", + "default_layout": "custom", + "layouts": [ + "resident-evil" + ] +} diff --git a/touch-layouts/layouts/resident-evil.json b/touch-layouts/layouts/resident-evil.json new file mode 100644 index 0000000..63798cf --- /dev/null +++ b/touch-layouts/layouts/resident-evil.json @@ -0,0 +1,229 @@ +{ + "schema_version": 1, + "layouts": { + "custom": { + "name": "Alternate", + "author": "Kode-Z", + "content": { + "left": { + "inner": [ + { + "type": "joystick", + "expand": false, + "axis": { + "input": "axisXY", + "output": "leftJoystick" + } + } + ], + "outer": [ + null, + null, + null, + null, + [ + { + "type": "button", + "action": "rightJoystickDown", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "lookBehind" + } + } + } + } + ], + [ + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "leftJoystick", + "deadzone": { + "threshold": 0.05, + "radial": true + } + }, + "action": "leftTrigger", + "styles": { + "default": { + "outline": { + "indicator": { + "type": "color", + "value": "#ffffff" + }, + "stroke": { + "type": "solid", + "color": "#ffffff" + }, + "opacity": 0.1 + }, + "knob": { + "faceImage": { + "type": "icon", + "value": "aim" + } + } + } + } + } + ] + ] + }, + "right": { + "inner": [ + { + "type": "button", + "action": "gamepadA", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "interact" + } + } + } + } + ], + "outer": [ + null, + null, + [ + { + "type": "button", + "action": "leftBumper", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "leftBumper" + } + } + } + } + ], + null, + { + "type": "button", + "action": "rightTrigger", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "fire" + } + } + } + }, + { + "type": "button", + "action": "gamepadB", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "reload" + } + } + } + } + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": { + "type": "layer", + "target": "selectAbility" + }, + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "add" + } + } + }, + "toggle": true + }, + { + "type": "button", + "action": "menu" + }, + { + "type": "button", + "action": "rightBumper", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "map" + } + } + } + }, + { + "type": "button", + "action": "gamepadY", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "inventory" + } + } + } + } + ] + }, + "layers": { + "selectAbility": { + "left": { + "inner": [ + { + "type": "directionalPad", + "scale": 2.2 + } + ] + }, + "right": { + "outer": [ + null, + null, + [ + { + "type": "button", + "action": "leftBumper", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "leftBumper" + } + } + } + } + ], + { + "type": "button", + "action": "gamepadX", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "sprint" + } + } + } + } + ] + } + } + } + } + } + } +} \ No newline at end of file