Custom touch controls for Shenmue 1 & 2 (#794)

* Update resident-evil.json

Opacity adjustments.

* Add files via upload

* Add files via upload
This commit is contained in:
Kode-Z
2025-09-18 04:50:17 +01:00
committed by GitHub
parent 38ae704eb0
commit 900600c538
4 changed files with 222 additions and 12 deletions

View File

@@ -0,0 +1,7 @@
{
"name": "Shenmue II",
"default_layout": "custom",
"layouts": [
"shenmue-1-and-2"
]
}

View File

@@ -0,0 +1,7 @@
{
"name": "Shenmue",
"default_layout": "custom",
"layouts": [
"shenmue-1-and-2"
]
}

View File

@@ -49,21 +49,18 @@
"action": "leftTrigger",
"styles": {
"default": {
"outline": {
"indicator": {
"type": "color",
"value": "#ffffff"
},
"stroke": {
"type": "solid",
"color": "#ffffff"
},
"opacity": 0.1
},
"knob": {
"faceImage": {
"type": "icon",
"value": "aim"
},
"background": {
"type": "color",
"value": "#ffffff",
"opacity": 0.1
},
"stroke": {
"opacity": 0.1
}
}
}

View File

@@ -0,0 +1,199 @@
{
"schema_version": 1,
"layouts": {
"custom": {
"name": "Custom",
"author": "Kode-Z",
"content": {
"left": {
"inner": [
{
"type": "joystick",
"axis": {
"input": "axisXY",
"output": "leftJoystick"
},
"styles": {
"default": {
"knob": {
"faceImage": {
"type": "icon",
"value": "walk"
}
}
}
}
}
]
},
"right": {
"inner": [
{
"type": "joystick",
"axis": {
"input": "axisXY",
"output": "rightJoystick"
}
}
],
"outer": [
[
null,
{
"type": "button",
"action": {
"type": "layer",
"target": "dPad"
},
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "dPad",
"opacity": 0.5
},
"background": {
"type": "color",
"value": "#1992cf",
"opacity": 0.2
}
}
},
"toggle": true
},
null
],
{
"type": "button",
"action": "rightTrigger",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "sprint"
}
}
}
},
{
"type": "button",
"action": "gamepadB",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "close"
}
}
}
},
{
"type": "button",
"action": "gamepadA",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "interact"
}
}
}
},
{
"type": "button",
"action": "gamepadX",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "notebook"
}
}
}
},
{
"type": "button",
"action": "gamepadY",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "inventory"
}
}
}
},
[
{
"type": "touchpad",
"axis": {
"input": "axisXY",
"output": "rightJoystick",
"sensitivity": 5,
"deadzone": {
"threshold": 0,
"radial": true
}
},
"renderAsButton": true,
"action": [
"leftTrigger"
],
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "look"
}
}
}
},
null
]
]
},
"upper": {
"right": [
null,
null,
{
"type": "button",
"action": "menu"
},
{
"type": "button",
"action": "rightTrigger"
},
{
"type": "button",
"action": "leftTrigger"
}
]
},
"layers": {
"dPad": {
"left": {
"inner": [
{
"type": "directionalPad",
"scale": 2.2
}
]
},
"right": {
"inner": [
{
"type": "joystick",
"axis": {
"input": "axisXY",
"output": "rightJoystick"
}
}
]
}
}
}
}
}
}
}