RE2R: add "Type A" layout

This commit is contained in:
redphx 2024-02-06 17:28:22 +07:00
parent 1c73d0ec11
commit dab7ebbc02

View File

@ -0,0 +1,232 @@
{
"schema_version": 2,
"name": "Resident Evil 2 Remake",
"default_layout": "type-a",
"layouts": {
"type-a": {
"name": "Type A",
"content": {
"layers": {
"EnableGyro": {
"sensors": [
{
"type": "gyroscope",
"axis": {
"input": "axisXY",
"output": "rightJoystick",
"sensitivity": 1
}
}
]
}
},
"left": {
"inner": [
{
"type": "joystick",
"axis": {
"input": "axisXY",
"output": "leftJoystick",
"deadzone": {
"threshold": 0.01,
"radial": true
}
}
}
],
"outer": [
{
"type": "touchpad",
"axis": [
{
"input": "axisX",
"output": "leftJoystickX",
"sensitivity": 20
},
{
"input": "axisY",
"output": "leftJoystickY",
"sensitivity": 10
}
],
"renderAsButton": true,
"action": [
"leftBumper",
{
"type": "layer",
"target": "EnableGyro"
}
],
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "leftBumper"
}
}
}
},
[
{
"type": "touchpad",
"axis": [
{
"input": "axisX",
"output": "leftJoystickX",
"sensitivity": 20
},
{
"input": "axisY",
"output": "leftJoystickY",
"sensitivity": 10
}
],
"renderAsButton": true,
"action": [
"leftTrigger",
{
"type": "layer",
"target": "EnableGyro"
}
],
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "leftTrigger"
}
}
}
},
null
],
null,
{
"type": "button",
"action": "rightThumb"
},
null,
[
{
"type": "button",
"action": "rightBumper"
}
],
null
]
},
"right": {
"inner": [
{
"type": "joystick",
"axis": {
"input": "axisXY",
"output": "rightJoystick",
"deadzone": {
"threshold": 0.01,
"radial": true
}
}
}
],
"outer": [
[
{
"type": "button",
"action": "leftThumb",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "run"
}
}
}
}
],
{
"type": "button",
"action": "gamepadB"
},
{
"type": "button",
"action": "gamepadA"
},
[
{
"type": "directionalPad",
"interaction": {
"activationType": "exclusive"
},
"scale": 1
},
null
],
{
"type": "touchpad",
"axis": [
{
"input": "axisX",
"output": "rightJoystickX",
"sensitivity": 20
},
{
"input": "axisY",
"output": "rightJoystickY",
"sensitivity": 10
}
],
"renderAsButton": true,
"action": "rightTrigger"
},
{
"type": "button",
"action": "gamepadX",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "reload"
}
}
}
},
null
]
},
"upper": {
"right": [
{
"type": "button",
"action": "menu"
},
{
"type": "button",
"action": "view",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "map"
}
}
}
},
{
"type": "button",
"action": "gamepadY",
"styles": {
"default": {
"faceImage": {
"type": "icon",
"value": "inventory"
}
}
}
}
]
}
}
}
}
}