[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
This commit is contained in:
Tak-attack 2024-03-03 17:56:40 +09:00 committed by GitHub
parent 6022bad3b6
commit fb6f7fcbf7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 851 additions and 0 deletions

View File

@ -0,0 +1,7 @@
{
"name": "Shredders",
"default_layout": "custom",
"layouts": [
"shredders"
]
}

View File

@ -0,0 +1,7 @@
{
"name": "Halo Infinite",
"default_layout": "rightstick",
"layouts": [
"halo-infinite"
]
}

View File

@ -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"
}
]
}
}
}
}
}

View File

@ -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"
}
}
}
}
}
}
}
}
}