diff --git a/touch-layouts/dev/1797327516.json b/touch-layouts/dev/1797327516.json index 403ebe4..38b2eac 100644 --- a/touch-layouts/dev/1797327516.json +++ b/touch-layouts/dev/1797327516.json @@ -1,237 +1,244 @@ { + "schema_version": 2, "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" + "default_layout": "type-a", + "layouts": { + "type-a": { + "name": "Type A", + "content": { + "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 + ], + "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": "axisX", + "output": "rightJoystickX", + "sensitivity": 5 + }, + { + "input": "axisY", + "output": "rightJoystickY", + "sensitivity": 2.5 + } + ], + "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" + } + } } }, - "action": "rightTrigger", - "styles": { - "default": { - "knob": { + { + "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" } } } - } - }, - 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": "axisX", - "output": "rightJoystickX", - "sensitivity": 5 }, { - "input": "axisY", - "output": "rightJoystickY", - "sensitivity": 2.5 - } - ], - "styles": { - "default": { - "faceImage": { - "type": "icon", - "value": "look" - } - } - } - } - ], - "outer": [ - [ - { - "type": "button", - "action": "leftTrigger", - "styles": { - "default": { - "faceImage": { - "type": "icon", - "value": "aim" + "type": "button", + "action": "gamepadX", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "reload" + } } } }, - "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 + "type": "button", + "action": "gamepadY", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "weaponSelect" + } + } + } }, { - "input": "axisY", - "output": "relativeMouseY", - "sensitivity": 2.5 + "type": "button", + "action": "rightThumb" } - ], - "renderAsButton": true, - "action": [ - "rightTrigger", - "leftTrigger" - ], - "styles": { - "default": { - "faceImage": { - "type": "icon", - "value": "fire" - } + ] + }, + "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": 2 } } - }, - { - "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": 2 - } + ] } - ] + } } }