From fb6f7fcbf79684d6076fc39b91087ada36b47139 Mon Sep 17 00:00:00 2001 From: Tak-attack <149154024+Tak-attack@users.noreply.github.com> Date: Sun, 3 Mar 2024 17:56:40 +0900 Subject: [PATCH] [Pull request Custom layout] Add "Halo infinite" and "Shredders" custom touch layout. (#274) * Add "Shredders" custom touch layout file. * Add "Halo infinite" custom touch layout file. * Change game name * Change to lower case name * Change to lower case name Rename Shredders.json to shredders.json --- touch-layouts/1931911684.json | 7 + touch-layouts/2043073184.json | 7 + touch-layouts/layouts/halo-infinite.json | 476 +++++++++++++++++++++++ touch-layouts/layouts/shredders.json | 361 +++++++++++++++++ 4 files changed, 851 insertions(+) create mode 100644 touch-layouts/1931911684.json create mode 100644 touch-layouts/2043073184.json create mode 100644 touch-layouts/layouts/halo-infinite.json create mode 100644 touch-layouts/layouts/shredders.json diff --git a/touch-layouts/1931911684.json b/touch-layouts/1931911684.json new file mode 100644 index 0000000..ec2ddc4 --- /dev/null +++ b/touch-layouts/1931911684.json @@ -0,0 +1,7 @@ +{ + "name": "Shredders", + "default_layout": "custom", + "layouts": [ + "shredders" + ] +} diff --git a/touch-layouts/2043073184.json b/touch-layouts/2043073184.json new file mode 100644 index 0000000..0251265 --- /dev/null +++ b/touch-layouts/2043073184.json @@ -0,0 +1,7 @@ +{ + "name": "Halo Infinite", + "default_layout": "rightstick", + "layouts": [ + "halo-infinite" + ] +} diff --git a/touch-layouts/layouts/halo-infinite.json b/touch-layouts/layouts/halo-infinite.json new file mode 100644 index 0000000..a92e5af --- /dev/null +++ b/touch-layouts/layouts/halo-infinite.json @@ -0,0 +1,476 @@ +{ + "schema_version": 1, + "layouts": { + "rightstick": { + "name": "Right Stick Mode (Default)", + "content": { + "layers": { + "AimTouchpad": { + "right": { + "inner": [{ + "type": "touchpad", + "axis": [{ + "input": "axisX", + "output": "rightJoystickX", + "sensitivity": 3 + }, { + "input": "axisY", + "output": "rightJoystickY", + "sensitivity": 3 + } + ], + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "aim" + } + } + } + } + ] + }, + "sensors": [{ + "type": "gyroscope", + "axis": { + "input": "axisXY", + "output": "rightJoystick", + "sensitivity": 2 + } + } + ] + } + }, + "left": { + "inner": [{ + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "leftJoystick", + "deadzone": { + "threshold": 0.01, + "radial": true + } + }, + "expand": false, + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "walk" + } + } + } + } + } + ], + "outer": [ + null, + null, + [{ + "type": "directionalPad", + "interaction": { + "activationType": "exclusive" + }, + "scale": 1.2 + } + ], + null, + null, { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "leftJoystick", + "deadzone": { + "threshold": 0.01, + "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": "rightBumper" + }, { + "type": "button", + "action": [ + "leftTrigger", { + "type": "layer", + "target": "AimTouchpad" + } + ], + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "aim" + } + } + }, + "toggle": true + }, + [{ + "type": "button", + "action": "gamepadB" + }, { + "type": "button", + "action": "rightThumb" + }, { + "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": "rightTrigger", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "fire" + } + } + } + }, { + "type": "button", + "action": "leftThumb", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "sprint" + } + } + } + }, { + "type": "button", + "action": "leftBumper" + } + ], { + "type": "button", + "action": "gamepadX", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "interact" + } + } + } + }, { + "type": "button", + "action": "gamepadY", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "weaponSelect" + } + } + } + } + ] + }, + "upper": { + "right": [{ + "type": "button", + "action": "menu" + }, { + "type": "button", + "action": "view" + } + ] + } + } + }, + "relativemouse": { + "name": "Relative Mouse Mode", + "content": { + "layers": { + "AimTouchpad": { + "sensors": [{ + "type": "gyroscope", + "axis": { + "input": "axisXY", + "output": "relativeMouse", + "sensitivity": 10 + } + } + ] + } + }, + "left": { + "inner": [{ + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "leftJoystick", + "deadzone": { + "threshold": 0.01, + "radial": true + } + }, + "expand": false, + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "walk" + } + } + } + } + } + ], + "outer": [ + null, + null, + [{ + "type": "directionalPad", + "interaction": { + "activationType": "exclusive" + }, + "scale": 1.2 + } + ], + null, + null, { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "leftJoystick", + "deadzone": { + "threshold": 0.01, + "radial": true + } + }, + "action": [ + "leftTrigger", { + "type": "layer", + "target": "AimTouchpad" + } + ], + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "leftTrigger" + }, + "stroke": { + "opacity": 0.1 + } + } + } + } + } + ] + }, + "right": { + "inner": [{ + "type": "touchpad", + "axis": [{ + "input": "axisX", + "output": "relativeMouseX", + "sensitivity": 10 + }, { + "input": "axisY", + "output": "relativeMouseY", + "sensitivity": 10 + } + ], + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "aim" + } + } + } + } + ], + "outer": [{ + "type": "button", + "action": "rightBumper" + }, { + "type": "button", + "action": [ + "leftTrigger", { + "type": "layer", + "target": "AimTouchpad" + } + ], + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "aim" + } + } + }, + "toggle": true + }, + [{ + "type": "button", + "action": "gamepadB" + }, { + "type": "button", + "action": "rightThumb" + }, { + "type": "button", + "action": "gamepadA", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "jump" + } + } + } + } + ], + [{ + "type": "touchpad", + "axis": [{ + "input": "axisX", + "output": "relativeMouseX", + "sensitivity": 10 + }, { + "input": "axisY", + "output": "relativeMouseY", + "sensitivity": 10 + } + ], + "renderAsButton": true, + "action": [ + "rightTrigger", { + "type": "layer", + "target": "AimTouchpad" + } + ], + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "fire" + } + } + } + }, { + "type": "button", + "action": "leftThumb", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "sprint" + } + } + } + }, { + "type": "button", + "action": "leftBumper" + } + ], { + "type": "button", + "action": "gamepadX", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "interact" + } + } + } + }, { + "type": "button", + "action": "gamepadY", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "weaponSelect" + } + } + } + } + ] + }, + "upper": { + "right": [{ + "type": "button", + "action": "menu" + }, { + "type": "button", + "action": "view" + } + ] + } + } + } + } +} diff --git a/touch-layouts/layouts/shredders.json b/touch-layouts/layouts/shredders.json new file mode 100644 index 0000000..72667e8 --- /dev/null +++ b/touch-layouts/layouts/shredders.json @@ -0,0 +1,361 @@ +{ + "schema_version": 1, + "layouts": { + "custom": { + "name": "Custom Layout", + "content": { + "left": { + "inner": [ + { + "type": "joystick", + "expand": true, + "axis": { + "input": "axisXY", + "output": "leftJoystick", + "deadzone": { + "threshold": 0.05, + "radial": true + } + }, + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "move" + }, + "stroke": { + "type": "solid", + "color": "#faff2e" + } + }, + "outline": { + "stroke": { + "type": "solid", + "color": "#faff2e" + }, + "indicator": { + "type": "color", + "value": "#faff2e" + } + } + } + } + } + ], + "outer": [ + { + "type": "button", + "action": "rightBumper", + "toggle": true, + "styles": { + "activated": { + "background": { + "type": "color", + "value": "#faff2e80" + } + }, + "toggled": { + "background": { + "type": "color", + "value": "#faff2e80" + } + } + } + }, + null, + [ + { + "type": "button", + "action": "leftTrigger", + "styles": { + "activated": { + "background": { + "type": "color", + "value": "#faff2e80" + } + } + } + }, + { + "type": "directionalPad", + "interaction": { + "activationType": "exclusive" + }, + "styles": { + "default": { + "fill": "#faff2e10", + "gradient": { + "color": "#faff2eff" + }, + "stroke": { + "type": "solid", + "color": "#faff2eff" + } + } + } + }, + { + "type": "button", + "action": "rightTrigger", + "styles": { + "activated": { + "background": { + "type": "color", + "value": "#faff2e80" + } + } + } + } + ], + null, + null, + null, + { + "type": "button", + "action": "leftBumper", + "toggle": true, + "styles": { + "activated": { + "background": { + "type": "color", + "value": "#faff2e80" + } + }, + "toggled": { + "background": { + "type": "color", + "value": "#faff2e80" + } + } + } + } + ] + }, + "right": { + "inner": [ + { + "type": "joystick", + "expand": true, + "axis": { + "input": "axisXY", + "output": "rightJoystick", + "deadzone": { + "threshold": 0.05, + "radial": true + } + }, + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "surf" + }, + "stroke": { + "type": "solid", + "color": "#faff2e" + } + }, + "outline": { + "stroke": { + "type": "solid", + "color": "#faff2e" + }, + "indicator": { + "type": "color", + "value": "#faff2e" + } + } + } + } + } + ], + "outer": [ + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "rightJoystick", + "deadzone": { + "threshold": 0.5, + "radial": true + } + }, + "action": "rightBumper", + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "rightBumper" + }, + "stroke": { + "type": "solid", + "color": "#faff2e", + "opacity": 0.1 + } + }, + "outline": { + "indicator": { + "type": "color", + "value": "#faff2e", + "opacity": 0.1 + } + } + } + } + }, + { + "type": "button", + "action": "gamepadB", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "reset" + } + } + } + }, + { + "type": "button", + "action": "gamepadA" + }, + null, + [ + { + "type": "button", + "action": "rightTrigger", + "styles": { + "activated": { + "background": { + "type": "color", + "value": "#faff2e80" + } + } + } + }, + { + "type": "button", + "action": "rightThumb", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "switchCamera" + }, + "background": { + "type": "color", + "value": "#faff2e80" + } + } + } + }, + { + "type": "button", + "action": "leftTrigger", + "styles": { + "activated": { + "background": { + "type": "color", + "value": "#faff2e80" + } + } + } + } + ], + { + "type": "button", + "action": "gamepadX", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "undo" + } + } + } + }, + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "rightJoystick", + "deadzone": { + "threshold": 0.5, + "radial": true + } + }, + "action": "leftBumper", + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "leftBumper" + }, + "stroke": { + "type": "solid", + "color": "#faff2e", + "opacity": 0.1 + } + }, + "outline": { + "indicator": { + "type": "color", + "value": "#faff2e", + "opacity": 0.1 + } + } + } + } + } + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": "menu", + "styles": { + "activated": { + "background": { + "type": "color", + "value": "#faff2e80" + } + } + } + }, + { + "type": "button", + "action": "view", + "styles": { + "activated": { + "background": { + "type": "color", + "value": "#faff2e80" + } + } + } + } + ] + }, + "lower": { + "center": { + "type": "button", + "action": "gamepadY", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "lookBehind2" + } + } + } + } + } + } + } + } +}