summaryrefslogtreecommitdiff
path: root/keyboards/mt/mt40/info.json
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-03-29 15:47:59 +1100
committerGitHub <noreply@github.com>2023-03-29 15:47:59 +1100
commit06664e8a94116b5d40b2348ec89ba2fc6248ec16 (patch)
tree42c79796aef495754078eaf4856f6b31f10975a6 /keyboards/mt/mt40/info.json
parentdc2a625a34a4abade436adcd137ec7a38c36beaa (diff)
Fix layouts containing keys with multiple matrix positions (#20191)
Diffstat (limited to 'keyboards/mt/mt40/info.json')
-rw-r--r--keyboards/mt/mt40/info.json56
1 files changed, 55 insertions, 1 deletions
diff --git a/keyboards/mt/mt40/info.json b/keyboards/mt/mt40/info.json
index 3af8ecceb2..4d3cab4eba 100644
--- a/keyboards/mt/mt40/info.json
+++ b/keyboards/mt/mt40/info.json
@@ -22,9 +22,63 @@
"processor": "atmega32a",
"bootloader": "bootloadhid",
"community_layouts": ["planck_mit"],
+ "layout_aliases": {
+ "LAYOUT": "LAYOUT_planck_mit"
+ },
"layouts": {
"LAYOUT_planck_mit": {
- "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":4, "y":1}, {"x":5, "y":1}, {"x":6, "y":1}, {"x":7, "y":1}, {"x":8, "y":1}, {"x":9, "y":1}, {"x":10, "y":1}, {"x":11, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":4, "y":2}, {"x":5, "y":2}, {"x":6, "y":2}, {"x":7, "y":2}, {"x":8, "y":2}, {"x":9, "y":2}, {"x":10, "y":2}, {"x":11, "y":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}, {"x":4, "y":3}, {"x":5, "y":3, "w":2}, {"x":7, "y":3}, {"x":8, "y":3}, {"x":9, "y":3}, {"x":10, "y":3}, {"x":11, "y":3}]
+ "layout": [
+ {"matrix": [4, 0], "x": 0, "y": 0},
+ {"matrix": [3, 1], "x": 1, "y": 0},
+ {"matrix": [3, 2], "x": 2, "y": 0},
+ {"matrix": [3, 3], "x": 3, "y": 0},
+ {"matrix": [3, 4], "x": 4, "y": 0},
+ {"matrix": [3, 5], "x": 5, "y": 0},
+ {"matrix": [5, 2], "x": 6, "y": 0},
+ {"matrix": [5, 12], "x": 7, "y": 0},
+ {"matrix": [6, 12], "x": 8, "y": 0},
+ {"matrix": [6, 2], "x": 9, "y": 0},
+ {"matrix": [3, 10], "x": 10, "y": 0},
+ {"matrix": [4, 14], "x": 11, "y": 0},
+
+ {"matrix": [3, 0], "x": 0, "y": 1},
+ {"matrix": [2, 1], "x": 1, "y": 1},
+ {"matrix": [2, 2], "x": 2, "y": 1},
+ {"matrix": [2, 3], "x": 3, "y": 1},
+ {"matrix": [2, 4], "x": 4, "y": 1},
+ {"matrix": [2, 5], "x": 5, "y": 1},
+ {"matrix": [5, 3], "x": 6, "y": 1},
+ {"matrix": [5, 13], "x": 7, "y": 1},
+ {"matrix": [6, 13], "x": 8, "y": 1},
+ {"matrix": [6, 3], "x": 9, "y": 1},
+ {"matrix": [2, 10], "x": 10, "y": 1},
+ {"matrix": [2, 11], "x": 11, "y": 1},
+
+ {"matrix": [1, 0], "x": 0, "y": 2},
+ {"matrix": [1, 1], "x": 1, "y": 2},
+ {"matrix": [1, 2], "x": 2, "y": 2},
+ {"matrix": [1, 3], "x": 3, "y": 2},
+ {"matrix": [1, 4], "x": 4, "y": 2},
+ {"matrix": [1, 5], "x": 5, "y": 2},
+ {"matrix": [5, 4], "x": 6, "y": 2},
+ {"matrix": [5, 14], "x": 7, "y": 2},
+ {"matrix": [6, 14], "x": 8, "y": 2},
+ {"matrix": [6, 4], "x": 9, "y": 2},
+ {"matrix": [1, 10], "x": 10, "y": 2},
+ {"matrix": [6, 6], "x": 11, "y": 2},
+
+ {"matrix": [2, 0], "x": 0, "y": 3},
+ {"matrix": [0, 0], "x": 1, "y": 3},
+ {"matrix": [0, 1], "x": 2, "y": 3},
+ {"matrix": [0, 2], "x": 3, "y": 3},
+ {"matrix": [0, 4], "x": 4, "y": 3},
+ {"matrix": [0, 5], "x": 5, "y": 3, "w": 2},
+ {"matrix": [0, 11], "x": 7, "y": 3},
+ {"matrix": [5, 6], "x": 8, "y": 3},
+ {"matrix": [5, 8], "x": 9, "y": 3},
+ {"matrix": [5, 7], "x": 10, "y": 3},
+ {"matrix": [5, 9], "x": 11, "y": 3}
+ ]
}
}
}