From 38dc1a6518d4d0b51d5ad43deb867036046cbf2a Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Tue, 30 Jan 2024 22:22:46 +0700 Subject: [PATCH] Palworld dev: update layout --- touch-layouts/dev/1797327516.json | 128 ++++++++++++++++++++---------- 1 file changed, 84 insertions(+), 44 deletions(-) diff --git a/touch-layouts/dev/1797327516.json b/touch-layouts/dev/1797327516.json index 38b2eac..8adf976 100644 --- a/touch-layouts/dev/1797327516.json +++ b/touch-layouts/dev/1797327516.json @@ -18,6 +18,8 @@ "radial": true } }, + "action": "leftThumb", + "actionThreshold": 2, "styles": { "default": { "knob": { @@ -26,6 +28,14 @@ "value": "walk" } } + }, + "activated": { + "knob": { + "faceImage": { + "type": "icon", + "value": "run" + } + } } } } @@ -49,7 +59,7 @@ "knob": { "faceImage": { "type": "icon", - "value": "fire" + "value": "rightTrigger" } } } @@ -61,44 +71,88 @@ "type": "directionalPad", "scale": 1.2 }, - null, { "type": "button", - "action": "leftBumper", - "toggle": true + "action": "rightThumb" }, { - "type": "button", - "action": "rightBumper", - "toggle": true + "type": "touchpad", + "axis": [ + { + "input": "axisX", + "output": "leftJoystickX", + "sensitivity": 20 + }, + { + "input": "axisY", + "output": "leftJoystickY", + "sensitivity": 10 + } + ], + "renderAsButton": true, + "action": [ + "leftBumper" + ] }, { - "type": "button", - "action": "leftTrigger" + "type": "touchpad", + "axis": [ + { + "input": "axisX", + "output": "leftJoystickX", + "sensitivity": 20 + }, + { + "input": "axisY", + "output": "leftJoystickY", + "sensitivity": 10 + } + ], + "renderAsButton": true, + "action": [ + "rightBumper" + ] + }, + { + "type": "touchpad", + "axis": [ + { + "input": "axisX", + "output": "leftJoystickX", + "sensitivity": 20 + }, + { + "input": "axisY", + "output": "leftJoystickY", + "sensitivity": 10 + } + ], + "renderAsButton": true, + "action": [ + "leftTrigger" + ] } ] }, "right": { "inner": [ { - "type": "touchpad", - "axis": [ - { - "input": "axisX", - "output": "rightJoystickX", - "sensitivity": 5 - }, - { - "input": "axisY", - "output": "rightJoystickY", - "sensitivity": 2.5 + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "rightJoystick", + "deadzone": { + "threshold": 0.01, + "radial": true } - ], + }, "styles": { "default": { - "faceImage": { - "type": "icon", - "value": "look" + "knob": { + "faceImage": { + "type": "icon", + "value": "look" + } } } } @@ -146,22 +200,20 @@ } }, { - "type": "button", - "action": "leftThumb", - "toggle": true + "type": "blank" }, { "type": "touchpad", "axis": [ { "input": "axisX", - "output": "relativeMouseX", - "sensitivity": 5 + "output": "rightJoystickX", + "sensitivity": 20 }, { "input": "axisY", - "output": "relativeMouseY", - "sensitivity": 2.5 + "output": "rightJoystickY", + "sensitivity": 10 } ], "renderAsButton": true, @@ -201,10 +253,6 @@ } } } - }, - { - "type": "button", - "action": "rightThumb" } ] }, @@ -217,14 +265,6 @@ { "type": "button", "action": "view" - }, - { - "type": "button", - "action": "rightBumper" - }, - { - "type": "button", - "action": "leftBumper" } ] }, @@ -234,7 +274,7 @@ "axis": { "input": "axisXY", "output": "rightJoystick", - "sensitivity": 2 + "sensitivity": 1 } } ]