mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-09-22 12:09:35 +02:00
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:
7
touch-layouts/1022228933.json
Normal file
7
touch-layouts/1022228933.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "Shenmue II",
|
||||
"default_layout": "custom",
|
||||
"layouts": [
|
||||
"shenmue-1-and-2"
|
||||
]
|
||||
}
|
7
touch-layouts/114172147.json
Normal file
7
touch-layouts/114172147.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "Shenmue",
|
||||
"default_layout": "custom",
|
||||
"layouts": [
|
||||
"shenmue-1-and-2"
|
||||
]
|
||||
}
|
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -226,4 +223,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
199
touch-layouts/layouts/shenmue-1-and-2.json
Normal file
199
touch-layouts/layouts/shenmue-1-and-2.json
Normal 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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user