Chicory: add layout

This commit is contained in:
redphx 2024-02-07 07:25:51 +07:00
parent 3ba2459092
commit d88f1f401d

View File

@ -0,0 +1,195 @@
{
"schema_version": 2,
"name": "Chicory",
"default_layout": "custom",
"layouts": {
"custom": {
"name": "Custom",
"content": {
"left": {
"inner": [
{
"type": "joystick",
"axis": {
"input": "axisXY",
"output": "leftJoystick"
},
"relative": false,
"styles": {
"default": {
"outline": {
"stroke": {
"type": "solid",
"color": "#ff0000aa"
}
},
"knob": {
"background": {
"type": "color",
"value": "#ff000033"
},
"stroke": {
"type": "solid",
"color": "#ff0000aa"
}
}
}
}
}
],
"outer": [
{
"type": "button",
"action": "rightBumper",
"styles": {
"default": {
"background": {
"type": "color",
"value": "#ff000033"
}
}
}
},
{
"type": "button",
"action": "rightTrigger",
"styles": {
"default": {
"background": {
"type": "color",
"value": "#ff000033"
}
}
}
},
[
{
"type": "directionalPad",
"interaction": {
"activationType": "exclusive"
},
"styles": {
"default": {
"fill": "#ff000033",
"stroke": {
"type": "solid",
"color": "#ff0000aa"
}
}
}
}
],
{
"type": "button",
"action": "rightThumb",
"styles": {
"default": {
"background": {
"type": "color",
"value": "#ff000033"
}
}
}
},
null,
{
"type": "button",
"action": "leftTrigger",
"styles": {
"default": {
"background": {
"type": "color",
"value": "#ff000033"
}
}
}
},
{
"type": "button",
"action": "leftBumper",
"styles": {
"default": {
"background": {
"type": "color",
"value": "#ff000033"
}
}
}
}
]
},
"right": {
"inner": [
{
"type": "button",
"action": "gamepadY"
},
{
"type": "button",
"action": "gamepadB"
},
{
"type": "button",
"action": "gamepadA"
},
{
"type": "button",
"action": "gamepadX"
}
],
"outer": [
null,
null,
null,
null,
[
{
"type": "joystick",
"axis": {
"input": "axisXY",
"output": "rightJoystick",
"deadzone": {
"threshold": 0.05,
"radial": true
}
},
"styles": {
"default": {
"outline": {
"stroke": {
"type": "solid",
"color": "#ff0000aa"
}
},
"knob": {
"background": {
"type": "color",
"value": "#ff000033"
},
"stroke": {
"type": "solid",
"color": "#ff0000aa"
}
}
}
}
}
]
]
},
"upper": {
"right": [
{
"type": "button",
"action": "menu"
},
{
"type": "button",
"action": "view"
}
]
}
}
}
}
}