Custom touch controls for Silent Hill 2 (#836)

* Add new IDs to touch-layouts/ids.json

Hogwart’s Legacy (both versions) and Silent Hill 2.

* Add files via upload

* Add files via upload
This commit is contained in:
Kode-Z
2025-11-23 22:19:11 +00:00
committed by GitHub
parent a0c08abf57
commit 156fd209dc
3 changed files with 230 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
{
"name": "Silent Hill 2",
"default_layout": "custom",
"layouts": [
"silent-hill-2"
]
}

View File

@@ -80,5 +80,8 @@
"9PDKDBQGG2N2",
"9PNZH065X7PV",
"BSXDD75Q561F",
"BQDVBCS5Z4N1"
"BQDVBCS5Z4N1",
"9NK4NTBFWW81",
"9MT5NJ5W7B8Z",
"9PNVDQKPJRQV"
]

View File

@@ -0,0 +1,219 @@
{
"schema_version": 1,
"layouts": {
"custom": {
"name": "Custom",
"author": "Kode-Z",
"content": {
"left": {
"inner": [
{
"type": "joystick",
"axis": {
"input": "axisXY",
"output": "leftJoystick"
},
"action": "leftBumper",
"relative": false,
"actionThreshold": 2,
"styles": {
"default": {
"knob": {
"faceImage": {
"type": "icon",
"value": "walk"
}
}
},
"activated": {
"knob": {
"faceImage": {
"type": "icon",
"value": "sprint"
}
}
}
}
}
],
"outer": [
null,
null,
[
{
"type": "directionalPad",
"scale": 1.2,
"interaction": {
"activationType": "exclusive"
}
}
],
[
null,
{
"type": "button",
"action": "view",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "inventory"
}
}
}
},
null
],
[
null,
{
"type": "joystick",
"axis": {
"input": "axisXY",
"output": "leftJoystick",
"deadzone": {
"threshold": 0,
"radial": true
}
},
"action": "leftTrigger",
"styles": {
"default": {
"knob": {
"faceImage": {
"type": "icon",
"value": "leftTrigger"
},
"background": {
"type": "color",
"value": "#ffffff",
"opacity": 0.1
},
"stroke": {
"opacity": 0.1
}
}
}
}
},
null
]
]
},
"right": {
"inner": [
{
"type": "joystick",
"axis": {
"input": "axisXY",
"output": "rightJoystick"
}
}
],
"outer": [
[
{
"type": "button",
"action": "leftBumper"
},
{
"type": "button",
"action": "rightThumb",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "brightness"
}
}
}
},
{
"type": "button",
"action": "rightBumper"
}
],
{
"type": "button",
"action": "gamepadB"
},
{
"type": "button",
"action": "gamepadA",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "interact"
}
}
}
},
[
{
"type": "touchpad",
"axis": {
"input": "axisXY",
"output": "rightJoystick",
"sensitivity": 5,
"deadzone": {
"threshold": 0,
"radial": true
}
},
"renderAsButton": true,
"action": [
"rightTrigger"
]
}
],
{
"type": "button",
"action": "gamepadX",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "reload"
}
}
}
},
{
"type": "button",
"action": "gamepadY",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "medical"
}
}
}
}
]
},
"upper": {
"right": [
{
"type": "button",
"action": "menu"
},
{
"type": "button",
"action": "dPadUp",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "map"
}
}
}
}
]
}
}
}
}
}