From c840c91c29fb6fe9fb46ecb21b937916840da451 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sun, 11 Feb 2024 06:56:01 +0700 Subject: [PATCH] tomb-raider-raise: add layout --- touch-layouts/1046363979.json | 7 + touch-layouts/layouts/tomb-raider-raise.json | 291 +++++++++++++++++++ 2 files changed, 298 insertions(+) create mode 100644 touch-layouts/1046363979.json create mode 100644 touch-layouts/layouts/tomb-raider-raise.json diff --git a/touch-layouts/1046363979.json b/touch-layouts/1046363979.json new file mode 100644 index 0000000..747e102 --- /dev/null +++ b/touch-layouts/1046363979.json @@ -0,0 +1,7 @@ +{ + "name": "Rise of the Tomb Raider", + "default_layout": "custom", + "layouts": [ + "tomb-raider-raise" + ] +} diff --git a/touch-layouts/layouts/tomb-raider-raise.json b/touch-layouts/layouts/tomb-raider-raise.json new file mode 100644 index 0000000..36881ff --- /dev/null +++ b/touch-layouts/layouts/tomb-raider-raise.json @@ -0,0 +1,291 @@ +{ + "schema_version": 1, + "layouts": { + "custom": { + "name": "Custom", + "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 + } + } + ] + } + }, + "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" + }, + "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": "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 + } + } + } + } + }, + { + "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": "button", + "action": "gamepadY", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "punch" + } + } + } + } + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": "menu" + }, + { + "type": "button", + "action": "view" + } + ] + } + } + } + } +}