Palworld dev: migrate to schema v2

This commit is contained in:
redphx 2024-01-30 22:03:25 +07:00
parent 6b820f279d
commit 57fff928bd

View File

@ -1,237 +1,244 @@
{ {
"schema_version": 2,
"name": "Palworld", "name": "Palworld",
"layout": { "default_layout": "type-a",
"left": { "layouts": {
"inner": [ "type-a": {
{ "name": "Type A",
"type": "joystick", "content": {
"axis": { "left": {
"input": "axisXY", "inner": [
"output": "leftJoystick", {
"deadzone": { "type": "joystick",
"threshold": 0.01, "axis": {
"radial": true "input": "axisXY",
} "output": "leftJoystick",
}, "deadzone": {
"styles": { "threshold": 0.01,
"default": { "radial": true
"knob": { }
"faceImage": { },
"type": "icon", "styles": {
"value": "walk" "default": {
"knob": {
"faceImage": {
"type": "icon",
"value": "walk"
}
}
} }
} }
} }
} ],
} "outer": [
], null,
"outer": [ [
null, {
[ "type": "joystick",
{ "axis": {
"type": "joystick", "input": "axisXY",
"axis": { "output": "leftJoystick",
"input": "axisXY", "deadzone": {
"output": "leftJoystick", "threshold": -0.3,
"deadzone": { "radial": true
"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": { "type": "button",
"default": { "action": "gamepadA",
"knob": { "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": { "faceImage": {
"type": "icon", "type": "icon",
"value": "fire" "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", "type": "button",
"output": "rightJoystickY", "action": "gamepadX",
"sensitivity": 2.5 "styles": {
} "default": {
], "faceImage": {
"styles": { "type": "icon",
"default": { "value": "reload"
"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", "type": "button",
"output": "relativeMouseX", "action": "gamepadY",
"sensitivity": 5 "styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "weaponSelect"
}
}
}
}, },
{ {
"input": "axisY", "type": "button",
"output": "relativeMouseY", "action": "rightThumb"
"sensitivity": 2.5
} }
], ]
"renderAsButton": true, },
"action": [ "upper": {
"rightTrigger", "right": [
"leftTrigger" {
], "type": "button",
"styles": { "action": "menu"
"default": { },
"faceImage": { {
"type": "icon", "type": "button",
"value": "fire" "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
}
} }
] }
} }
} }