From 1a496128da982070cf779be789e4cfd326fe567c Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Mon, 29 Jan 2024 07:57:30 +0700 Subject: [PATCH] Palworld: update dev layout --- touch-layouts/dev/1797327516.json | 233 ++++++++++++++++++++++++++++++ 1 file changed, 233 insertions(+) create mode 100644 touch-layouts/dev/1797327516.json diff --git a/touch-layouts/dev/1797327516.json b/touch-layouts/dev/1797327516.json new file mode 100644 index 0000000..b8fdc7f --- /dev/null +++ b/touch-layouts/dev/1797327516.json @@ -0,0 +1,233 @@ +{ + "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": [ + null, + [ + { + "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": "touchpad", + "axis": { + "input": "axisXY", + "output": "rightJoystick", + "deadzone": { + "threshold": 0.01, + "radial": true + } + }, + "styles": { + "default": { + "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": "button", + "action": "leftThumb", + "toggle": true + }, + { + "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 + } + } + ] + } +}