2024-05-08 16:59:23 +07:00

373 lines
9.6 KiB
JSON

{
"schema_version": 1,
"layouts": {
"custom": {
"name": "Custom",
"author": "redphx",
"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.5
}
}
]
}
},
"left": {
"inner": [
{
"type": "joystick",
"axis": {
"input": "axisXY",
"output": "leftJoystick",
"deadzone": {
"threshold": 0.01,
"radial": true
}
},
"action": "leftThumb",
"actionThreshold": 2,
"expand": false,
"styles": {
"default": {
"knob": {
"faceImage": {
"type": "icon",
"value": "walk"
}
}
},
"activated": {
"knob": {
"faceImage": {
"type": "icon",
"value": "run"
}
}
}
}
}
],
"outer": [
null,
[
{
"type": "joystick",
"axis": {
"input": "axisXY",
"output": "leftJoystick",
"deadzone": {
"threshold": -0.3,
"radial": true
}
},
"action": [
"rightTrigger",
{
"type": "layer",
"target": "AimTouchpad"
}
],
"styles": {
"default": {
"knob": {
"faceImage": {
"type": "icon",
"value": "rightTrigger"
},
"stroke": {
"opacity": 0.1
}
}
}
}
},
null
],
{
"type": "directionalPad",
"interaction": {
"activationType": "exclusive"
},
"scale": 1.2
},
{
"type": "button",
"action": "rightThumb"
},
{
"type": "joystick",
"axis": {
"input": "axisXY",
"output": "leftJoystick",
"deadzone": {
"threshold": 0.5,
"radial": true
}
},
"action": [
"leftBumper",
{
"type": "layer",
"target": "AimTouchpad"
}
],
"styles": {
"default": {
"knob": {
"faceImage": {
"type": "icon",
"value": "leftBumper"
},
"stroke": {
"opacity": 0.1
}
}
}
}
},
{
"type": "joystick",
"axis": {
"input": "axisXY",
"output": "leftJoystick",
"deadzone": {
"threshold": 0.5,
"radial": true
}
},
"action": [
"rightBumper",
{
"type": "layer",
"target": "AimTouchpad"
}
],
"styles": {
"default": {
"knob": {
"faceImage": {
"type": "icon",
"value": "rightBumper"
},
"stroke": {
"opacity": 0.1
}
}
}
}
},
{
"type": "joystick",
"axis": {
"input": "axisXY",
"output": "leftJoystick",
"deadzone": {
"threshold": 0.5,
"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": [
"leftTrigger",
{
"type": "layer",
"target": "AimTouchpad"
}
],
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "aim"
}
}
},
"toggle": true
}
],
{
"type": "button",
"action": "gamepadB",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "roll"
}
}
}
},
[
{
"type": "button",
"action": "gamepadA",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "jump"
}
}
}
},
null
],
{
"type": "touchpad",
"axis": [
{
"input": "axisX",
"output": "rightJoystickX",
"sensitivity": 5
},
{
"input": "axisY",
"output": "rightJoystickY",
"sensitivity": 5
}
],
"renderAsButton": true,
"action": [
"rightTrigger",
"leftTrigger",
{
"type": "layer",
"target": "AimTouchpad"
}
],
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "fire"
}
}
}
},
{
"type": "button",
"action": "gamepadX",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "reload"
}
}
}
},
{
"type": "button",
"action": "gamepadY",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "weaponSelect"
}
}
}
}
]
},
"upper": {
"right": [
{
"type": "button",
"action": "menu"
},
{
"type": "button",
"action": "view"
}
]
}
}
}
}
}