From 8ad62b3082bc5e6ecf1ad52d3e34ea81dedd9517 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sun, 28 Jan 2024 18:39:18 +0700 Subject: [PATCH] Add Palworld's touch layout --- touch-layouts/1797327516.json | 234 ++++++++++++++++++++++++++++++++++ 1 file changed, 234 insertions(+) create mode 100644 touch-layouts/1797327516.json diff --git a/touch-layouts/1797327516.json b/touch-layouts/1797327516.json new file mode 100644 index 0000000..d188f34 --- /dev/null +++ b/touch-layouts/1797327516.json @@ -0,0 +1,234 @@ +{ + "name": "Palworld", + "layout": { + "left": { + "inner": [ + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "leftJoystick", + "deadzone": { + "threshold": 0.01, + "radial": true + } + }, + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "walk" + } + } + } + } + } + ], + "outer": [ + { + "type": "button", + "action": "leftThumb", + "toggle": true + }, + [ + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "leftJoystick", + "deadzone": { + "threshold": -0.3, + "radial": true + } + }, + "action": "rightTrigger", + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "fire" + } + } + } + } + }, + null + ], + { + "type": "directionalPad", + "scale": 1.2 + }, + null, + { + "type": "button", + "action": "leftBumper", + "toggle": true + }, + { + "type": "button", + "action": "rightBumper", + "toggle": true + }, + { + "type": "button", + "action": "leftTrigger" + } + ] + }, + "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", + "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": "touchpad", + "axis": [ + { + "input": "axisX", + "output": "relativeMouseX", + "sensitivity": 5 + }, + { + "input": "axisY", + "output": "relativeMouseY", + "sensitivity": 2.5 + } + ], + "renderAsButton": true, + "action": [ + "rightTrigger", + "leftTrigger" + ], + "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" + } + } + } + }, + { + "type": "button", + "action": "rightThumb" + } + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": "menu" + }, + { + "type": "button", + "action": "view" + }, + { + "type": "button", + "action": "rightBumper" + }, + { + "type": "button", + "action": "leftBumper" + } + ] + }, + "sensors": [ + { + "type": "gyroscope", + "axis": { + "input": "axisXY", + "output": "rightJoystick", + "sensitivity": 3 + } + } + ] + } +}