From 8fecd3683d6939e745d182be7a0ca6fcbed8ee06 Mon Sep 17 00:00:00 2001 From: Tak-attack <149154024+Tak-attack@users.noreply.github.com> Date: Tue, 12 Mar 2024 22:26:06 +0900 Subject: [PATCH] [Submit layout] "Plateup!", "Roboquest" and Adjust gyroscope sensitivity in Halo Infinite. (#289) * Upload layouts. "Plateup!" and "Roboquest" * Halo Infinite: Adjustment of gylo sensor input and Beautifying the JSON format. --- touch-layouts/1922695178.json | 7 + touch-layouts/1953745880.json | 7 + touch-layouts/layouts/halo-infinite.json | 178 +++++++++----- touch-layouts/layouts/plateup.json | 101 ++++++++ touch-layouts/layouts/roboquest.json | 289 +++++++++++++++++++++++ 5 files changed, 524 insertions(+), 58 deletions(-) create mode 100644 touch-layouts/1922695178.json create mode 100644 touch-layouts/1953745880.json create mode 100644 touch-layouts/layouts/plateup.json create mode 100644 touch-layouts/layouts/roboquest.json diff --git a/touch-layouts/1922695178.json b/touch-layouts/1922695178.json new file mode 100644 index 0000000..50a2c61 --- /dev/null +++ b/touch-layouts/1922695178.json @@ -0,0 +1,7 @@ +{ + "name": "PlateUp!", + "default_layout": "custom", + "layouts": [ + "plateup" + ] +} diff --git a/touch-layouts/1953745880.json b/touch-layouts/1953745880.json new file mode 100644 index 0000000..0460220 --- /dev/null +++ b/touch-layouts/1953745880.json @@ -0,0 +1,7 @@ +{ + "name": "Roboquest", + "default_layout": "custom", + "layouts": [ + "roboquest" + ] +} diff --git a/touch-layouts/layouts/halo-infinite.json b/touch-layouts/layouts/halo-infinite.json index a92e5af..08e7ca0 100644 --- a/touch-layouts/layouts/halo-infinite.json +++ b/touch-layouts/layouts/halo-infinite.json @@ -7,13 +7,16 @@ "layers": { "AimTouchpad": { "right": { - "inner": [{ + "inner": [ + { "type": "touchpad", - "axis": [{ + "axis": [ + { "input": "axisX", "output": "rightJoystickX", "sensitivity": 3 - }, { + }, + { "input": "axisY", "output": "rightJoystickY", "sensitivity": 3 @@ -30,19 +33,28 @@ } ] }, - "sensors": [{ + "sensors": [ + { "type": "gyroscope", - "axis": { - "input": "axisXY", - "output": "rightJoystick", - "sensitivity": 2 - } + "axis": [ + { + "input": "axisX", + "output": "rightJoystickX", + "sensitivity": 1 + }, + { + "input": "axisY", + "output": "rightJoystickY", + "sensitivity": 0.5 + } + ] } ] } }, "left": { - "inner": [{ + "inner": [ + { "type": "joystick", "axis": { "input": "axisXY", @@ -68,7 +80,8 @@ "outer": [ null, null, - [{ + [ + { "type": "directionalPad", "interaction": { "activationType": "exclusive" @@ -77,7 +90,8 @@ } ], null, - null, { + null, + { "type": "joystick", "axis": { "input": "axisXY", @@ -88,7 +102,8 @@ } }, "action": [ - "leftTrigger", { + "leftTrigger", + { "type": "layer", "target": "AimTouchpad" } @@ -110,7 +125,8 @@ ] }, "right": { - "inner": [{ + "inner": [ + { "type": "joystick", "axis": { "input": "axisXY", @@ -132,13 +148,16 @@ } } ], - "outer": [{ + "outer": [ + { "type": "button", "action": "rightBumper" - }, { + }, + { "type": "button", "action": [ - "leftTrigger", { + "leftTrigger", + { "type": "layer", "target": "AimTouchpad" } @@ -153,13 +172,16 @@ }, "toggle": true }, - [{ + [ + { "type": "button", "action": "gamepadB" - }, { + }, + { "type": "button", "action": "rightThumb" - }, { + }, + { "type": "button", "action": "gamepadA", "styles": { @@ -172,13 +194,16 @@ } } ], - [{ + [ + { "type": "touchpad", - "axis": [{ + "axis": [ + { "input": "axisX", "output": "rightJoystickX", "sensitivity": 3 - }, { + }, + { "input": "axisY", "output": "rightJoystickY", "sensitivity": 3 @@ -194,7 +219,8 @@ } } } - }, { + }, + { "type": "button", "action": "leftThumb", "styles": { @@ -205,11 +231,13 @@ } } } - }, { + }, + { "type": "button", "action": "leftBumper" } - ], { + ], + { "type": "button", "action": "gamepadX", "styles": { @@ -220,7 +248,8 @@ } } } - }, { + }, + { "type": "button", "action": "gamepadY", "styles": { @@ -235,10 +264,12 @@ ] }, "upper": { - "right": [{ + "right": [ + { "type": "button", "action": "menu" - }, { + }, + { "type": "button", "action": "view" } @@ -251,19 +282,28 @@ "content": { "layers": { "AimTouchpad": { - "sensors": [{ + "sensors": [ + { "type": "gyroscope", - "axis": { - "input": "axisXY", - "output": "relativeMouse", - "sensitivity": 10 - } + "axis": [ + { + "input": "axisX", + "output": "relativeMouseX", + "sensitivity": 10 + }, + { + "input": "axisY", + "output": "relativeMouse", + "sensitivity": 5 + } + ] } ] } }, "left": { - "inner": [{ + "inner": [ + { "type": "joystick", "axis": { "input": "axisXY", @@ -289,7 +329,8 @@ "outer": [ null, null, - [{ + [ + { "type": "directionalPad", "interaction": { "activationType": "exclusive" @@ -298,7 +339,8 @@ } ], null, - null, { + null, + { "type": "joystick", "axis": { "input": "axisXY", @@ -309,7 +351,8 @@ } }, "action": [ - "leftTrigger", { + "leftTrigger", + { "type": "layer", "target": "AimTouchpad" } @@ -331,13 +374,16 @@ ] }, "right": { - "inner": [{ + "inner": [ + { "type": "touchpad", - "axis": [{ + "axis": [ + { "input": "axisX", "output": "relativeMouseX", "sensitivity": 10 - }, { + }, + { "input": "axisY", "output": "relativeMouseY", "sensitivity": 10 @@ -353,13 +399,16 @@ } } ], - "outer": [{ + "outer": [ + { "type": "button", "action": "rightBumper" - }, { + }, + { "type": "button", "action": [ - "leftTrigger", { + "leftTrigger", + { "type": "layer", "target": "AimTouchpad" } @@ -374,13 +423,16 @@ }, "toggle": true }, - [{ + [ + { "type": "button", "action": "gamepadB" - }, { + }, + { "type": "button", "action": "rightThumb" - }, { + }, + { "type": "button", "action": "gamepadA", "styles": { @@ -393,13 +445,16 @@ } } ], - [{ + [ + { "type": "touchpad", - "axis": [{ + "axis": [ + { "input": "axisX", "output": "relativeMouseX", "sensitivity": 10 - }, { + }, + { "input": "axisY", "output": "relativeMouseY", "sensitivity": 10 @@ -407,7 +462,8 @@ ], "renderAsButton": true, "action": [ - "rightTrigger", { + "rightTrigger", + { "type": "layer", "target": "AimTouchpad" } @@ -420,7 +476,8 @@ } } } - }, { + }, + { "type": "button", "action": "leftThumb", "styles": { @@ -431,11 +488,13 @@ } } } - }, { + }, + { "type": "button", "action": "leftBumper" } - ], { + ], + { "type": "button", "action": "gamepadX", "styles": { @@ -446,7 +505,8 @@ } } } - }, { + }, + { "type": "button", "action": "gamepadY", "styles": { @@ -461,10 +521,12 @@ ] }, "upper": { - "right": [{ + "right": [ + { "type": "button", "action": "menu" - }, { + }, + { "type": "button", "action": "view" } diff --git a/touch-layouts/layouts/plateup.json b/touch-layouts/layouts/plateup.json new file mode 100644 index 0000000..49fba7e --- /dev/null +++ b/touch-layouts/layouts/plateup.json @@ -0,0 +1,101 @@ +{ + "schema_version": 1, + "layouts": { + "custom": { + "name": "Custom", + "content": { + "left": { + "inner": [ + { + "type": "joystick", + "expand": false, + "axis": { + "input": "axisXY", + "output": "leftJoystick", + "deadzone": { + "threshold": 0.05, + "radial": true + } + } + } + ], + "outer": [ + null, + null, + [ + { + "type": "directionalPad", + "scale": 1.2 + } + ] + ] + }, + "right": { + "inner": [ + { + "type": "button", + "action": "gamepadA" + } + ], + "outer": [ + null, + { + "type": "button", + "action": "gamepadB", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "waypoint" + } + } + } + }, + { + "type": "button", + "action": "leftBumper" + }, + null, + null, + { + "type": "button", + "action": "gamepadX", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "interact" + } + } + } + }, + null, + [ + { + "type": "button", + "action": "gamepadY", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "accept" + } + } + } + }, + null + ] + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": "menu" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/touch-layouts/layouts/roboquest.json b/touch-layouts/layouts/roboquest.json new file mode 100644 index 0000000..39d89ae --- /dev/null +++ b/touch-layouts/layouts/roboquest.json @@ -0,0 +1,289 @@ +{ + "schema_version": 1, + "layouts": { + "custom": { + "name": "Custom", + "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": "axisX", + "output": "rightJoystickX", + "sensitivity": 1 + }, + { + "input": "axisY", + "output": "rightJoystickY", + "sensitivity": 0.5 + } + ] + } + ] + } + }, + "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, + "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": "leftTrigger" + } + } + }, + "toggle": true + }, + [ + { + "type": "button", + "action": "gamepadB", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "crouch" + } + } + } + }, + { + "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": "gamepadX", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "reload" + } + } + } + } + ], + { + "type": "button", + "action": "gamepadY", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "interact" + } + } + } + }, + { + "type": "button", + "action": "leftBumper" + } + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": "menu" + }, + { + "type": "button", + "action": "view" + } + ] + } + } + } + } +} \ No newline at end of file