Perfect Dark Zero Touch Controls (#299)

* Perfect Dark Zero Touch Controls

* Perfect Dark Zero Layout

* Update perfect-dark-zero.json
This commit is contained in:
Kode-Z 2024-03-19 07:29:19 +00:00 committed by GitHub
parent f44f88d9a6
commit 19460ccc2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 214 additions and 0 deletions

View File

@ -0,0 +1,7 @@
{
"name": "Perfect Dark Zero",
"default_layout": "custom",
"layouts": [
"perfect-dark-zero"
]
}

View File

@ -0,0 +1,207 @@
{
"schema_version": 1,
"layouts": {
"LAYOUT_ID": {
"name": "Custom",
"content": {
"left": {
"inner": [
{
"type": "joystick",
"axis": {
"input": "axisXY",
"output": "leftJoystick"
},
"styles": {
"default": {
"knob": {
"faceImage": {
"type": "icon",
"value": "walk"
}
}
}
}
}
],
"outer": [
null,
null,
null,
{
"type": "directionalPad",
"scale": 1
},
null,
null,
null,
{
"type": "button",
"action": "rightTrigger",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "fire"
}
}
}
}
]
},
"right": {
"inner": [
{
"type": "joystick",
"axis": {
"input": "axisXY",
"output": "rightJoystick"
},
"styles": {
"default": {
"knob": {
"faceImage": {
"type": "icon",
"value": "look"
}
}
}
}
}
],
"outer": [
[
{
"type": "button",
"action": "leftTrigger",
"toggle": true,
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "aim"
}
}
}
},
null,
{
"type": "button",
"action": "leftThumb",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "crouch"
}
}
}
}
],
{
"type": "button",
"action": "rightBumper"
},
{
"type": "button",
"action": "gamepadX",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "reload"
}
}
}
},
[
{
"type": "touchpad",
"axis": {
"input": "axisXY",
"output": "rightJoystick",
"deadzone": {
"threshold": 0.5,
"radial": true
}
},
"renderAsButton": true,
"action": [
"rightTrigger"
],
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "fire"
}
}
}
},
{
"type": "button",
"action": "gamepadB",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "punch"
}
}
}
},
{
"type": "button",
"action": "gamepadA",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "interact"
}
}
}
}
],
{
"type": "button",
"action": "leftBumper",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "roll"
}
}
}
},
{
"type": "button",
"action": "gamepadY",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "weaponSelect"
}
}
}
}
]
},
"upper": {
"right": [
{
"type": "button",
"action": "menu"
},
{
"type": "button",
"action": "view"
}
]
}
}
}
}
}