Migrate layouts to schema v2

This commit is contained in:
redphx 2024-01-31 07:28:12 +07:00
parent 38dc1a6518
commit 11cbcd03d3
2 changed files with 525 additions and 318 deletions

View File

@ -1,6 +1,11 @@
{
"schema_version": 2,
"name": "Palworld",
"layout": {
"default_layout": "type-a",
"layouts": {
"type-a": {
"name": "Type A",
"content": {
"left": {
"inner": [
{
@ -274,4 +279,6 @@
}
]
}
}
}
}

View File

@ -1,6 +1,204 @@
{
"schema_version": 2,
"name": "Brotato",
"layout": {
"default_layout": "one-handed-left",
"layouts": {
"one-handed-left": {
"name": "One-handed (Left)",
"content": {
"left": {
"inner": [
{
"type": "joystick",
"relative": false,
"axis": {
"input": "axisXY",
"output": "leftJoystick"
}
}
],
"outer": [
null,
{
"type": "button",
"action": "gamepadA",
"styles": {
"idle": {
"opacity": 0.5
}
}
},
[
{
"type": "directionalPad",
"styles": {
"idle": {
"opacity": 0.5
}
}
}
],
null,
null,
{
"type": "button",
"action": "leftBumper",
"styles": {
"idle": {
"opacity": 0.5
}
}
},
{
"type": "button",
"action": "gamepadB",
"styles": {
"idle": {
"opacity": 0.5
}
}
}
]
},
"upper": {
"right": [
{
"type": "button",
"action": "menu"
}
]
}
}
},
"one-handed-right": {
"name": "One-handed (Right)",
"content": {
"right": {
"inner": [
{
"type": "joystick",
"relative": false,
"axis": {
"input": "axisXY",
"output": "leftJoystick"
}
}
],
"outer": [
{
"type": "button",
"action": "gamepadB",
"styles": {
"idle": {
"opacity": 0.5
}
}
},
{
"type": "button",
"action": "rightBumper",
"styles": {
"idle": {
"opacity": 0.5
}
}
},
null,
null,
[
{
"type": "directionalPad",
"styles": {
"idle": {
"opacity": 0.5
}
}
}
],
{
"type": "button",
"action": "gamepadA",
"styles": {
"idle": {
"opacity": 0.5
}
}
}
]
},
"upper": {
"right": [
{
"type": "button",
"action": "menu"
}
]
}
}
},
"simplified": {
"name": "Simplified",
"content": {
"left": {
"inner": [
{
"type": "joystick",
"relative": false,
"axis": {
"input": "axisXY",
"output": "leftJoystick"
}
}
],
"outer": [
null,
null,
[
{
"type": "directionalPad",
"styles": {
"idle": {
"opacity": 0.5
}
}
}
]
]
},
"right": {
"inner": [
{
"type": "button",
"action": "gamepadA"
}
],
"outer": [
{
"type": "blank"
},
{
"type": "button",
"action": "gamepadB"
}
]
},
"upper": {
"right": [
{
"type": "button",
"action": "menu"
},
{
"type": "button",
"action": "rightBumper"
}
]
}
}
},
"simplified-full": {
"name": "Simplified (2 joysticks)",
"content": {
"left": {
"inner": [
{
@ -77,4 +275,6 @@
]
}
}
}
}
}