Add Shadow of the Tomb Raider touch layout

This commit is contained in:
redphx
2025-07-04 20:46:14 +07:00
parent 38314187e0
commit d4ee137495
3 changed files with 306 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
{
"name": "Shadow of the Tomb Raider",
"product_id": "BRVK4W7RVCXR",
"default_layout": "custom",
"layouts": [
"tomb-raider-shadow"
]
}

View File

@@ -39,9 +39,11 @@
"9PLT62LRF9V7",
"9PLZPHBNHTMF",
"9PNJXVCVWD4K",
"BNQQ3WVBNZCQ",
"BPCN22ZVT05C",
"BR1D9CR82ZM8",
"BR7QJW8V9L2S",
"BRVK4W7RVCXR",
"BTQMHK78ZPF9",
"BWMH951M3G3P",
"BX3M8L83BBRW",

View File

@@ -0,0 +1,296 @@
{
"schema_version": 1,
"layouts": {
"custom": {
"name": "Custom",
"author": "redphx",
"content": {
"layers": {
"AimTouchpad": {
"right": {
"inner": [
{
"type": "touchpad",
"axis": [
{
"input": "axisX",
"output": "rightJoystickX",
"sensitivity": 5
},
{
"input": "axisY",
"output": "rightJoystickY",
"sensitivity": 5
}
],
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "aim"
}
}
}
}
]
},
"sensors": [
{
"type": "gyroscope",
"axis": {
"input": "axisXY",
"output": "rightJoystick",
"sensitivity": 1.5
}
}
]
}
},
"left": {
"inner": [
{
"type": "joystick",
"axis": {
"input": "axisXY",
"output": "leftJoystick",
"deadzone": {
"threshold": 0.01,
"radial": true
}
},
"action": "leftThumb",
"actionThreshold": 2,
"expand": true,
"styles": {
"default": {
"knob": {
"faceImage": {
"type": "icon",
"value": "walk"
}
}
},
"activated": {
"knob": {
"faceImage": {
"type": "icon",
"value": "run"
}
}
}
}
}
],
"outer": [
null,
null,
[
{
"type": "directionalPad",
"interaction": {
"activationType": "exclusive"
},
"scale": 1.2
},
null
],
null,
null,
{
"type": "button",
"action": "leftBumper"
},
{
"type": "joystick",
"axis": {
"input": "axisXY",
"output": "leftJoystick",
"deadzone": {
"threshold": 0.2,
"radial": true
}
},
"action": [
"leftTrigger",
{
"type": "layer",
"target": "AimTouchpad"
}
],
"styles": {
"default": {
"knob": {
"faceImage": {
"type": "icon",
"value": "leftTrigger"
},
"stroke": {
"opacity": 0.1
}
}
}
}
}
]
},
"right": {
"inner": [
{
"type": "joystick",
"axis": {
"input": "axisXY",
"output": "rightJoystick",
"deadzone": {
"threshold": 0.01,
"radial": true
}
},
"styles": {
"default": {
"knob": {
"faceImage": {
"type": "icon",
"value": "look"
}
}
}
}
}
],
"outer": [
[
{
"type": "button",
"action": "rightThumb"
},
null
],
{
"type": "button",
"action": "gamepadB",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "roll"
}
}
}
},
null,
[
{
"type": "button",
"action": "gamepadA",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "jump"
}
}
}
},
{
"type": "button",
"action": "gamepadY",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "punch"
}
}
}
},
{
"type": "button",
"action": "gamepadX",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "interact"
}
}
}
}
],
{
"type": "touchpad",
"axis": [
{
"input": "axisX",
"output": "rightJoystickX",
"sensitivity": 3
},
{
"input": "axisY",
"output": "rightJoystickY",
"sensitivity": 3
}
],
"renderAsButton": true,
"action": "rightTrigger",
"styles": {
"default": {
"knob": {
"faceImage": {
"type": "icon",
"value": "rightTrigger"
},
"stroke": {
"opacity": 0.1
}
}
}
}
},
{
"type": "touchpad",
"axis": [
{
"input": "axisX",
"output": "rightJoystickX",
"sensitivity": 3
},
{
"input": "axisY",
"output": "rightJoystickY",
"sensitivity": 3
}
],
"renderAsButton": true,
"action": "rightBumper",
"styles": {
"default": {
"knob": {
"faceImage": {
"type": "icon",
"value": "rightBumper"
},
"stroke": {
"opacity": 0.1
}
}
}
}
}
]
},
"upper": {
"right": [
{
"type": "button",
"action": "menu"
},
{
"type": "button",
"action": "view"
}
]
}
}
}
}
}