diff --git a/touch-layouts/442930574.json b/touch-layouts/442930574.json new file mode 100644 index 0000000..010e2b3 --- /dev/null +++ b/touch-layouts/442930574.json @@ -0,0 +1,7 @@ +{ + "name": "Perfect Dark Zero", + "default_layout": "custom", + "layouts": [ + "perfect-dark-zero" + ] +} diff --git a/touch-layouts/layouts/perfect-dark-zero.json b/touch-layouts/layouts/perfect-dark-zero.json new file mode 100644 index 0000000..c4c8166 --- /dev/null +++ b/touch-layouts/layouts/perfect-dark-zero.json @@ -0,0 +1,207 @@ +{ + "schema_version": 1, + "layouts": { + "LAYOUT_ID": { + "name": "Custom", + "content": { + "left": { + "inner": [ + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "leftJoystick" + }, + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "walk" + } + } + } + } + } + ], + "outer": [ + null, + null, + null, + { + "type": "directionalPad", + "scale": 1 + }, + null, + null, + null, + { + "type": "button", + "action": "rightTrigger", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "fire" + } + } + } + } + ] + }, + "right": { + "inner": [ + { + "type": "joystick", + "axis": { + "input": "axisXY", + "output": "rightJoystick" + }, + "styles": { + "default": { + "knob": { + "faceImage": { + "type": "icon", + "value": "look" + } + } + } + } + } + ], + "outer": [ + [ + { + "type": "button", + "action": "leftTrigger", + "toggle": true, + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "aim" + } + } + } + }, + null, + { + "type": "button", + "action": "leftThumb", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "crouch" + } + } + } + } + ], + { + "type": "button", + "action": "rightBumper" + }, + { + "type": "button", + "action": "gamepadX", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "reload" + } + } + } + }, + [ + { + "type": "touchpad", + "axis": { + "input": "axisXY", + "output": "rightJoystick", + "deadzone": { + "threshold": 0.5, + "radial": true + } + }, + "renderAsButton": true, + "action": [ + "rightTrigger" + ], + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "fire" + } + } + } + }, + { + "type": "button", + "action": "gamepadB", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "punch" + } + } + } + }, + { + "type": "button", + "action": "gamepadA", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "interact" + } + } + } + } + ], + { + "type": "button", + "action": "leftBumper", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "roll" + } + } + } + }, + { + "type": "button", + "action": "gamepadY", + "styles": { + "default": { + "faceImage": { + "type": "icon", + "value": "weaponSelect" + } + } + } + } + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": "menu" + }, + { + "type": "button", + "action": "view" + } + ] + } + } + } + } +}