mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-05 12:56:42 +02:00
Touch controls for Choo Choo Charles (#758)
* Add files via upload * Add files via upload
This commit is contained in:
7
touch-layouts/1625569842.json
Normal file
7
touch-layouts/1625569842.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"name": "Choo Choo Charles",
|
||||||
|
"default_layout": "custom",
|
||||||
|
"layouts": [
|
||||||
|
"choo-choo-charles"
|
||||||
|
]
|
||||||
|
}
|
235
touch-layouts/layouts/choo-choo-charles.json
Normal file
235
touch-layouts/layouts/choo-choo-charles.json
Normal file
@@ -0,0 +1,235 @@
|
|||||||
|
{
|
||||||
|
"schema_version": 1,
|
||||||
|
"layouts": {
|
||||||
|
"custom": {
|
||||||
|
"name": "Custom",
|
||||||
|
"author": "Kode-Z",
|
||||||
|
"content": {
|
||||||
|
"left": {
|
||||||
|
"inner": [
|
||||||
|
{
|
||||||
|
"type": "joystick",
|
||||||
|
"axis": {
|
||||||
|
"input": "axisXY",
|
||||||
|
"output": "leftJoystick"
|
||||||
|
},
|
||||||
|
"action": "leftThumb",
|
||||||
|
"relative": false,
|
||||||
|
"actionThreshold": 2,
|
||||||
|
"styles": {
|
||||||
|
"default": {
|
||||||
|
"knob": {
|
||||||
|
"faceImage": {
|
||||||
|
"type": "icon",
|
||||||
|
"value": "walk"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"activated": {
|
||||||
|
"knob": {
|
||||||
|
"faceImage": {
|
||||||
|
"type": "icon",
|
||||||
|
"value": "sprint"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outer": [
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
[
|
||||||
|
null,
|
||||||
|
{
|
||||||
|
"type": "button",
|
||||||
|
"action": "view",
|
||||||
|
"styles": {
|
||||||
|
"default": {
|
||||||
|
"faceImage": {
|
||||||
|
"type": "icon",
|
||||||
|
"value": "map"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
null
|
||||||
|
],
|
||||||
|
[
|
||||||
|
null,
|
||||||
|
{
|
||||||
|
"type": "button",
|
||||||
|
"action": "gamepadY",
|
||||||
|
"styles": {
|
||||||
|
"default": {
|
||||||
|
"faceImage": {
|
||||||
|
"type": "icon",
|
||||||
|
"value": "inventory"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
null
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"right": {
|
||||||
|
"inner": [
|
||||||
|
{
|
||||||
|
"type": "joystick",
|
||||||
|
"axis": {
|
||||||
|
"input": "axisXY",
|
||||||
|
"output": "rightJoystick"
|
||||||
|
},
|
||||||
|
"styles": {
|
||||||
|
"default": {
|
||||||
|
"knob": {
|
||||||
|
"faceImage": {
|
||||||
|
"type": "icon",
|
||||||
|
"value": "look"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outer": [
|
||||||
|
{
|
||||||
|
"type": "touchpad",
|
||||||
|
"axis": [
|
||||||
|
{
|
||||||
|
"input": "axisX",
|
||||||
|
"output": "rightJoystickX",
|
||||||
|
"sensitivity": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "axisY",
|
||||||
|
"output": "rightJoystickY",
|
||||||
|
"sensitivity": 5
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"renderAsButton": true,
|
||||||
|
"action": [
|
||||||
|
"rightBumper"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
null,
|
||||||
|
[
|
||||||
|
null,
|
||||||
|
{
|
||||||
|
"type": "button",
|
||||||
|
"action": "gamepadB"
|
||||||
|
},
|
||||||
|
null
|
||||||
|
],
|
||||||
|
{
|
||||||
|
"type": "button",
|
||||||
|
"action": "gamepadA",
|
||||||
|
"styles": {
|
||||||
|
"default": {
|
||||||
|
"faceImage": {
|
||||||
|
"type": "icon",
|
||||||
|
"value": "interact"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "button",
|
||||||
|
"action": "gamepadX",
|
||||||
|
"styles": {
|
||||||
|
"default": {
|
||||||
|
"faceImage": {
|
||||||
|
"type": "icon",
|
||||||
|
"value": "jump"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "touchpad",
|
||||||
|
"axis": [
|
||||||
|
{
|
||||||
|
"input": "axisX",
|
||||||
|
"output": "rightJoystickX",
|
||||||
|
"sensitivity": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "axisY",
|
||||||
|
"output": "rightJoystickY",
|
||||||
|
"sensitivity": 5
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"renderAsButton": true,
|
||||||
|
"action": [
|
||||||
|
"rightTrigger"
|
||||||
|
],
|
||||||
|
"styles": {
|
||||||
|
"default": {
|
||||||
|
"faceImage": {
|
||||||
|
"type": "icon",
|
||||||
|
"value": "fire"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "touchpad",
|
||||||
|
"axis": [
|
||||||
|
{
|
||||||
|
"input": "axisX",
|
||||||
|
"output": "rightJoystickX",
|
||||||
|
"sensitivity": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "axisY",
|
||||||
|
"output": "rightJoystickY",
|
||||||
|
"sensitivity": 5
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"renderAsButton": true,
|
||||||
|
"action": [
|
||||||
|
"leftBumper"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"upper": {
|
||||||
|
"right": [
|
||||||
|
{
|
||||||
|
"type": "button",
|
||||||
|
"action": "menu"
|
||||||
|
},
|
||||||
|
null,
|
||||||
|
{
|
||||||
|
"type": "button",
|
||||||
|
"action": "rightTrigger",
|
||||||
|
"styles": {
|
||||||
|
"default": {
|
||||||
|
"faceImage": {
|
||||||
|
"type": "icon",
|
||||||
|
"value": "zoomIn"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "button",
|
||||||
|
"action": "leftTrigger",
|
||||||
|
"styles": {
|
||||||
|
"default": {
|
||||||
|
"faceImage": {
|
||||||
|
"type": "icon",
|
||||||
|
"value": "zoomOut"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user