From 84868279a5b5382f783bb88e984f6767b3139a72 Mon Sep 17 00:00:00 2001 From: Kode-Z <162533196+Kode-Z@users.noreply.github.com> Date: Fri, 1 Aug 2025 17:08:24 +0100 Subject: [PATCH] Touch controls for Choo Choo Charles (#758) * Add files via upload * Add files via upload --- touch-layouts/1625569842.json | 7 + touch-layouts/layouts/choo-choo-charles.json | 235 +++++++++++++++++++ 2 files changed, 242 insertions(+) create mode 100644 touch-layouts/1625569842.json create mode 100644 touch-layouts/layouts/choo-choo-charles.json diff --git a/touch-layouts/1625569842.json b/touch-layouts/1625569842.json new file mode 100644 index 0000000..810b74a --- /dev/null +++ b/touch-layouts/1625569842.json @@ -0,0 +1,7 @@ +{ + "name": "Choo Choo Charles", + "default_layout": "custom", + "layouts": [ + "choo-choo-charles" + ] +} \ No newline at end of file diff --git a/touch-layouts/layouts/choo-choo-charles.json b/touch-layouts/layouts/choo-choo-charles.json new file mode 100644 index 0000000..8d29020 --- /dev/null +++ b/touch-layouts/layouts/choo-choo-charles.json @@ -0,0 +1,235 @@ +{ + "schema_version": 1, + "layouts": { + "custom": { + "name": "Custom", + "author": "Kode-Z", + "content": { + "left": { + "inner": [ + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "leftJoystick" + }, + "action": "leftThumb", + "relative": false, + "actionThreshold": 2, + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "walk" + } + } + }, + "activated": { + "knob": { + "faceImage": { + "type": "icon", + "value": "sprint" + } + } + } + } + } + ], + "outer": [ + null, + null, + null, + null, + [ + null, + { + "type": "button", + "action": "view", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "map" + } + } + } + }, + null + ], + [ + null, + { + "type": "button", + "action": "gamepadY", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "inventory" + } + } + } + }, + null + ] + ] + }, + "right": { + "inner": [ + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "rightJoystick" + }, + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "look" + } + } + } + } + } + ], + "outer": [ + { + "type": "touchpad", + "axis": [ + { + "input": "axisX", + "output": "rightJoystickX", + "sensitivity": 5 + }, + { + "input": "axisY", + "output": "rightJoystickY", + "sensitivity": 5 + } + ], + "renderAsButton": true, + "action": [ + "rightBumper" + ] + }, + null, + [ + null, + { + "type": "button", + "action": "gamepadB" + }, + null + ], + { + "type": "button", + "action": "gamepadA", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "interact" + } + } + } + }, + { + "type": "button", + "action": "gamepadX", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "jump" + } + } + } + }, + { + "type": "touchpad", + "axis": [ + { + "input": "axisX", + "output": "rightJoystickX", + "sensitivity": 5 + }, + { + "input": "axisY", + "output": "rightJoystickY", + "sensitivity": 5 + } + ], + "renderAsButton": true, + "action": [ + "rightTrigger" + ], + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "fire" + } + } + } + }, + { + "type": "touchpad", + "axis": [ + { + "input": "axisX", + "output": "rightJoystickX", + "sensitivity": 5 + }, + { + "input": "axisY", + "output": "rightJoystickY", + "sensitivity": 5 + } + ], + "renderAsButton": true, + "action": [ + "leftBumper" + ] + } + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": "menu" + }, + null, + { + "type": "button", + "action": "rightTrigger", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "zoomIn" + } + } + } + }, + { + "type": "button", + "action": "leftTrigger", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "zoomOut" + } + } + } + } + ] + } + } + } + } +} \ No newline at end of file