South of Midnight custom touch controls (#715)

This commit is contained in:
Kode-Z 2025-05-11 14:55:46 +01:00 committed by GitHub
parent a450b6e5a3
commit 1e681c9542
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 154 additions and 0 deletions

View File

@ -0,0 +1,7 @@
{
"name": "South of Midnight",
"default_layout": "custom",
"layouts": [
"south-of-midnight"
]
}

View File

@ -0,0 +1,147 @@
{
"schema_version": 1,
"layouts": {
"custom": {
"name": "Custom",
"author": "Kode-Z",
"content": {
"left": {
"inner": [
{
"type": "joystick",
"axis": {
"input": "axisXY",
"output": "leftJoystick"
},
"action": "leftThumb",
"relative": false,
"actionThreshold": 2,
"styles": {
"default": {
"knob": {
"faceImage": {
"type": "icon",
"value": "walk"
}
}
},
"activated": {
"knob": {
"faceImage": {
"type": "icon",
"value": "sprint"
}
}
}
}
}
],
"outer": [
null,
null,
[
{
"type": "directionalPad"
}
],
null,
null,
null,
null
]
},
"right": {
"inner": [
{
"type": "joystick",
"expand": false,
"axis": {
"input": "axisXY",
"output": "rightJoystick"
}
}
],
"outer": [
{
"type": "button",
"action": "rightBumper"
},
{
"type": "button",
"action": "rightTrigger"
},
[
{
"type": "button",
"action": "gamepadB"
},
null,
{
"type": "button",
"action": "gamepadA",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "jump"
}
}
}
}
],
[
{
"type": "button",
"action": "gamepadX",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "lightPunch3"
}
}
}
},
{
"type": "button",
"action": "rightThumb"
},
{
"type": "button",
"action": "gamepadY",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "interact"
}
}
}
}
],
{
"type": "button",
"action": "leftTrigger"
},
{
"type": "button",
"action": "leftBumper"
}
]
},
"upper": {
"right": [
{
"type": "button",
"action": "menu"
},
{
"type": "button",
"action": "view"
}
]
}
}
}
}
}