brotato: simplify layouts

This commit is contained in:
redphx 2024-02-11 11:30:15 +07:00
parent 0155cb75cd
commit c6c1e3181f

View File

@ -16,50 +16,41 @@
} }
], ],
"outer": [ "outer": [
null,
{
"type": "button",
"action": "gamepadA",
"styles": {
"idle": {
"opacity": 0.5
}
}
},
[ [
{ {
"type": "directionalPad", "type": "button",
"scale": 1.2, "action": "gamepadA",
"interaction": {
"activationType": "exclusive"
},
"styles": { "styles": {
"idle": { "idle": {
"opacity": 0.5 "opacity": 0.7
} }
} }
} }
], ],
null, null,
null, null,
{ [
"type": "button", {
"action": "leftBumper", "type": "button",
"styles": { "action": "leftBumper",
"idle": { "styles": {
"opacity": 0.5 "idle": {
"opacity": 0.7
}
} }
} }
}, ],
{ [
"type": "button", {
"action": "gamepadB", "type": "button",
"styles": { "action": "gamepadB",
"idle": { "styles": {
"opacity": 0.5 "idle": {
"opacity": 0.7
}
} }
} }
} ]
] ]
}, },
"upper": { "upper": {
@ -87,49 +78,41 @@
} }
], ],
"outer": [ "outer": [
{
"type": "button",
"action": "gamepadB",
"styles": {
"idle": {
"opacity": 0.5
}
}
},
{
"type": "button",
"action": "rightBumper",
"styles": {
"idle": {
"opacity": 0.5
}
}
},
null,
null,
[ [
{ {
"type": "directionalPad", "type": "button",
"scale": 1.2, "action": "gamepadB",
"interaction": {
"activationType": "exclusive"
},
"styles": { "styles": {
"idle": { "idle": {
"opacity": 0.5 "opacity": 0.7
} }
} }
} }
], ],
{ [
"type": "button", {
"action": "gamepadA", "type": "button",
"styles": { "action": "leftBumper",
"idle": { "styles": {
"opacity": 0.5 "idle": {
"opacity": 0.7
}
} }
} }
} ],
null,
null,
[
{
"type": "button",
"action": "gamepadA",
"styles": {
"idle": {
"opacity": 0.7
}
}
}
]
] ]
}, },
"upper": { "upper": {
@ -143,67 +126,46 @@
} }
}, },
"simplified": { "simplified": {
"name": "Simplified", "left": {
"content": { "inner": [
"left": { {
"inner": [ "type": "joystick",
{ "relative": false,
"type": "joystick", "axis": {
"relative": false, "input": "axisXY",
"axis": { "output": "leftJoystick"
"input": "axisXY",
"output": "leftJoystick"
}
} }
], }
"outer": [ ]
null, },
null, "right": {
[ "inner": [
{ {
"type": "directionalPad", "type": "button",
"scale": 1.2, "action": "gamepadA"
"interaction": { }
"activationType": "exclusive" ],
}, "outer": [
"styles": { {
"idle": { "type": "blank"
"opacity": 0.5 },
} {
} "type": "button",
} "action": "gamepadB"
] }
] ]
}, },
"right": { "upper": {
"inner": [ "right": [
{ {
"type": "button", "type": "button",
"action": "gamepadA" "action": "menu"
} },
], {
"outer": [ "type": "button",
{ "action": "rightBumper"
"type": "blank" }
}, ]
{
"type": "button",
"action": "gamepadB"
}
]
},
"upper": {
"right": [
{
"type": "button",
"action": "menu"
},
{
"type": "button",
"action": "rightBumper"
}
]
}
} }
}, },
"simplified-full": { "simplified-full": {
@ -219,24 +181,6 @@
"output": "leftJoystick" "output": "leftJoystick"
} }
} }
],
"outer": [
null,
null,
[
{
"type": "directionalPad",
"scale": 1.2,
"interaction": {
"activationType": "exclusive"
},
"styles": {
"idle": {
"opacity": 0.5
}
}
}
]
] ]
}, },
"right": { "right": {
@ -268,7 +212,7 @@
"styles": { "styles": {
"idle": { "idle": {
"knob": { "knob": {
"opacity": 0.5 "opacity": 0.7
} }
} }
} }