From 230367fa13dcc42d32a0ba7412b03dadda9a67c2 Mon Sep 17 00:00:00 2001 From: Tak-attack Date: Tue, 12 Mar 2024 20:25:58 +0900 Subject: [PATCH] [Halo Infinite] Adjustment of gyro sensor sensibility --- touch-layouts/dev/layouts/halo-infinite.json | 185 ++++++++++++------- 1 file changed, 121 insertions(+), 64 deletions(-) diff --git a/touch-layouts/dev/layouts/halo-infinite.json b/touch-layouts/dev/layouts/halo-infinite.json index b1b229f7..bfa790ea 100644 --- a/touch-layouts/dev/layouts/halo-infinite.json +++ b/touch-layouts/dev/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,24 +33,28 @@ } ] }, - "sensors": [{ + "sensors": [ + { "type": "gyroscope", - "axis": [{ - "input": "axisX", - "output": "rightJoystickX", - "sensitivity": 1 - }, { - "input": "axisY", - "output": "rightJoystickY", - "sensitivity": 0.5 - } - ] + "axis": [ + { + "input": "axisX", + "output": "rightJoystickX", + "sensitivity": 1 + }, + { + "input": "axisY", + "output": "rightJoystickY", + "sensitivity": 0.5 + } + ] } ] } }, "left": { - "inner": [{ + "inner": [ + { "type": "joystick", "axis": { "input": "axisXY", @@ -73,7 +80,8 @@ "outer": [ null, null, - [{ + [ + { "type": "directionalPad", "interaction": { "activationType": "exclusive" @@ -82,7 +90,8 @@ } ], null, - null, { + null, + { "type": "joystick", "axis": { "input": "axisXY", @@ -93,7 +102,8 @@ } }, "action": [ - "leftTrigger", { + "leftTrigger", + { "type": "layer", "target": "AimTouchpad" } @@ -115,7 +125,8 @@ ] }, "right": { - "inner": [{ + "inner": [ + { "type": "joystick", "axis": { "input": "axisXY", @@ -137,13 +148,16 @@ } } ], - "outer": [{ + "outer": [ + { "type": "button", "action": "rightBumper" - }, { + }, + { "type": "button", "action": [ - "leftTrigger", { + "leftTrigger", + { "type": "layer", "target": "AimTouchpad" } @@ -158,13 +172,16 @@ }, "toggle": true }, - [{ + [ + { "type": "button", "action": "gamepadB" - }, { + }, + { "type": "button", "action": "rightThumb" - }, { + }, + { "type": "button", "action": "gamepadA", "styles": { @@ -177,13 +194,16 @@ } } ], - [{ + [ + { "type": "touchpad", - "axis": [{ + "axis": [ + { "input": "axisX", "output": "rightJoystickX", "sensitivity": 3 - }, { + }, + { "input": "axisY", "output": "rightJoystickY", "sensitivity": 3 @@ -199,7 +219,8 @@ } } } - }, { + }, + { "type": "button", "action": "leftThumb", "styles": { @@ -210,11 +231,13 @@ } } } - }, { + }, + { "type": "button", "action": "leftBumper" } - ], { + ], + { "type": "button", "action": "gamepadX", "styles": { @@ -225,7 +248,8 @@ } } } - }, { + }, + { "type": "button", "action": "gamepadY", "styles": { @@ -240,10 +264,12 @@ ] }, "upper": { - "right": [{ + "right": [ + { "type": "button", "action": "menu" - }, { + }, + { "type": "button", "action": "view" } @@ -256,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", @@ -294,7 +329,8 @@ "outer": [ null, null, - [{ + [ + { "type": "directionalPad", "interaction": { "activationType": "exclusive" @@ -303,7 +339,8 @@ } ], null, - null, { + null, + { "type": "joystick", "axis": { "input": "axisXY", @@ -314,7 +351,8 @@ } }, "action": [ - "leftTrigger", { + "leftTrigger", + { "type": "layer", "target": "AimTouchpad" } @@ -336,13 +374,16 @@ ] }, "right": { - "inner": [{ + "inner": [ + { "type": "touchpad", - "axis": [{ + "axis": [ + { "input": "axisX", "output": "relativeMouseX", "sensitivity": 10 - }, { + }, + { "input": "axisY", "output": "relativeMouseY", "sensitivity": 10 @@ -358,13 +399,16 @@ } } ], - "outer": [{ + "outer": [ + { "type": "button", "action": "rightBumper" - }, { + }, + { "type": "button", "action": [ - "leftTrigger", { + "leftTrigger", + { "type": "layer", "target": "AimTouchpad" } @@ -379,13 +423,16 @@ }, "toggle": true }, - [{ + [ + { "type": "button", "action": "gamepadB" - }, { + }, + { "type": "button", "action": "rightThumb" - }, { + }, + { "type": "button", "action": "gamepadA", "styles": { @@ -398,13 +445,16 @@ } } ], - [{ + [ + { "type": "touchpad", - "axis": [{ + "axis": [ + { "input": "axisX", "output": "relativeMouseX", "sensitivity": 10 - }, { + }, + { "input": "axisY", "output": "relativeMouseY", "sensitivity": 10 @@ -412,7 +462,8 @@ ], "renderAsButton": true, "action": [ - "rightTrigger", { + "rightTrigger", + { "type": "layer", "target": "AimTouchpad" } @@ -425,7 +476,8 @@ } } } - }, { + }, + { "type": "button", "action": "leftThumb", "styles": { @@ -436,11 +488,13 @@ } } } - }, { + }, + { "type": "button", "action": "leftBumper" } - ], { + ], + { "type": "button", "action": "gamepadX", "styles": { @@ -451,7 +505,8 @@ } } } - }, { + }, + { "type": "button", "action": "gamepadY", "styles": { @@ -466,10 +521,12 @@ ] }, "upper": { - "right": [{ + "right": [ + { "type": "button", "action": "menu" - }, { + }, + { "type": "button", "action": "view" } @@ -478,4 +535,4 @@ } } } -} +} \ No newline at end of file