From 71a273fc5c9962bf5f05aec2d07f3d93f91a2d6f Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Fri, 10 May 2024 21:30:50 +0700 Subject: [PATCH] plants-vs-zombies: add layout --- touch-layouts/560570291.json | 8 +++ touch-layouts/ids.json | 1 + touch-layouts/layouts/plants-vs-zombies.json | 60 ++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 touch-layouts/560570291.json create mode 100644 touch-layouts/layouts/plants-vs-zombies.json diff --git a/touch-layouts/560570291.json b/touch-layouts/560570291.json new file mode 100644 index 0000000..09ec2ea --- /dev/null +++ b/touch-layouts/560570291.json @@ -0,0 +1,8 @@ +{ + "name": "Plants vs. Zombies", + "product_id": "BR1D9CR82ZM8", + "default_layout": "custom", + "layouts": [ + "plants-vs-zombies" + ] +} diff --git a/touch-layouts/ids.json b/touch-layouts/ids.json index 3220fd7..eca56b4 100644 --- a/touch-layouts/ids.json +++ b/touch-layouts/ids.json @@ -31,6 +31,7 @@ "9PLZPHBNHTMF", "9PNJXVCVWD4K", "BPCN22ZVT05C", + "BR1D9CR82ZM8", "BTQMHK78ZPF9", "BWMH951M3G3P", "BX3M8L83BBRW", diff --git a/touch-layouts/layouts/plants-vs-zombies.json b/touch-layouts/layouts/plants-vs-zombies.json new file mode 100644 index 0000000..e628c82 --- /dev/null +++ b/touch-layouts/layouts/plants-vs-zombies.json @@ -0,0 +1,60 @@ +{ + "schema_version": 1, + "layouts": { + "custom": { + "name": "Custom", + "author": "redphx", + "content": { + "left": { + "inner": [ + { + "type": "directionalPad", + "scale": 1.5, + "interaction": { + "activationType": "exclusive" + } + } + ] + }, + "right": { + "inner": [ + { + "type": "button", + "action": "gamepadA" + } + ], + "outer": [ + { + "type": "button", + "action": "rightBumper" + }, + null, + { + "type": "button", + "action": "gamepadB" + }, + null, + null, + { + "type": "button", + "action": "gamepadX" + }, + null, + { + "type": "button", + "action": "leftBumper" + } + ] + }, + "upper": { + "right": [ + { + "type": "button", + "action": "menu" + } + ] + } + } + } + } +}