DOOM 64 Custom Touch Controls (#297)

* Create doom-64.json

Doom 64 touch controls.

* Create 2136041956.json

* Update 2136041956.json

* Update 2136041956.json

* Update doom-64.json

---------

Co-authored-by: redphx <96280+redphx@users.noreply.github.com>
This commit is contained in:
Kode-Z 2024-03-19 10:23:26 +00:00 committed by GitHub
parent 19460ccc2b
commit 3001f0278a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 180 additions and 0 deletions

View File

@ -0,0 +1,7 @@
{
"name": "DOOM 64",
"default_layout": "custom",
"layouts": [
"doom-64"
]
}

View File

@ -0,0 +1,173 @@
{
"schema_version": 1,
"layouts": {
"custom": {
"name": "Custom",
"content": {
"left": {
"inner": [
{
"type": "joystick",
"action": "leftTrigger",
"actionThreshold": 0.75,
"axis": {
"input": "axisXY",
"output": "leftJoystick",
"deadzone": {
"threshold": 0.05,
"radial": true
}
},
"styles": {
"default": {
"knob": {
"faceImage": {
"type": "icon",
"value": "walk"
},
"background": {
"type": "color",
"value": "#c60a0a"
}
},
"activated": {
"knob": {
"faceImage": {
"type": "icon",
"value": "sprint"
},
"background": {
"type": "color",
"value": "#c60a0a"
}
}
}
}
}
}
],
"outer": [
null,
null,
null,
null,
null,
null,
null,
{
"type": "button",
"action": "leftBumper"
}
]
},
"right": {
"inner": [
{
"type": "touchpad",
"axis": {
"input": "axisXY",
"output": "rightJoystick",
"sensitivity": 2.5
},
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "aim"
}
}
}
}
],
"outer": [
{
"type": "button",
"action": "rightBumper"
},
null,
{
"type": "button",
"action": "leftTrigger",
"toggle": true,
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "sprint"
}
}
}
},
null,
{
"type": "button",
"action": "gamepadA",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "interact"
}
}
}
},
[
{
"type": "touchpad",
"axis": {
"input": "axisXY",
"output": "rightJoystick",
"sensitivity": 2.5
},
"action": "rightTrigger",
"renderAsButton": true,
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "fire"
}
}
}
}
]
]
},
"upper": {
"right": [
{
"type": "button",
"action": "menu"
},
{
"type": "button",
"action": "view",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "map"
}
}
}
},
{
"type": "button",
"action": "gamepadB"
}
]
},
"sensors": [
{
"type": "gyroscope",
"axis": {
"input": "axisXY",
"output": "rightJoystick",
"sensitivity": 1
}
}
]
}
}
}
}