diff options
author | Ryan <fauxpark@gmail.com> | 2023-04-25 02:38:35 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-25 02:38:35 +1000 |
commit | f111bea3cda240b7c54bff2e12b5043b7b0797f7 (patch) | |
tree | 9fa3b3356f50e0b989231bf69da4ce00c18e85e0 /keyboards/coarse/ixora | |
parent | 72d2be24f9bb1ab40a7a64447f2625c31b22a201 (diff) |
Move miscellaneous layouts to data driven (#20516)
Diffstat (limited to 'keyboards/coarse/ixora')
-rw-r--r-- | keyboards/coarse/ixora/info.json | 38 | ||||
-rw-r--r-- | keyboards/coarse/ixora/ixora.h | 40 |
2 files changed, 33 insertions, 45 deletions
diff --git a/keyboards/coarse/ixora/info.json b/keyboards/coarse/ixora/info.json index c38424ffa7..8d51f1e927 100644 --- a/keyboards/coarse/ixora/info.json +++ b/keyboards/coarse/ixora/info.json @@ -23,16 +23,44 @@ "debounce": 0, "layouts": { "LAYOUT_full": { - "layout": [{"label":"1", "x":0, "y":0}, {"label":"2", "x":1, "y":0}, {"label":"3", "x":2, "y":0}, {"label":"Caps Lock", "x":0, "y":1}, {"label":"Num Lock", "x":1, "y":1}, {"label":"Scroll Lock", "x":2, "y":1}] + "layout": [ + {"matrix": [0, 0], "x": 0, "y": 0}, + {"matrix": [0, 1], "x": 1, "y": 0}, + {"matrix": [0, 2], "x": 2, "y": 0}, + + {"matrix": [0, 3], "x": 0, "y": 1}, + {"matrix": [0, 4], "x": 1, "y": 1}, + {"matrix": [0, 5], "x": 2, "y": 1} + ] }, "LAYOUT_blocker_right": { - "layout": [{"label":"1", "x":0, "y":0}, {"label":"2", "x":1, "y":0}, {"label":"Caps Lock", "x":0, "y":1}, {"label":"Num Lock", "x":1, "y":1}, {"label":"Scroll Lock", "x":2, "y":1}] + "layout": [ + {"matrix": [0, 0], "x": 0, "y": 0}, + {"matrix": [0, 1], "x": 1, "y": 0}, + + {"matrix": [0, 3], "x": 0, "y": 1}, + {"matrix": [0, 4], "x": 1, "y": 1}, + {"matrix": [0, 5], "x": 2, "y": 1} + ] }, "LAYOUT_blocker_left": { - "layout": [{"label":"2", "x":1, "y":0}, {"label":"3", "x":2, "y":0}, {"label":"Caps Lock", "x":0, "y":1}, {"label":"Num Lock", "x":1, "y":1}, {"label":"Scroll Lock", "x":2, "y":1}] + "layout": [ + {"matrix": [0, 1], "x": 1, "y": 0}, + {"matrix": [0, 2], "x": 2, "y": 0}, + + {"matrix": [0, 3], "x": 0, "y": 1}, + {"matrix": [0, 4], "x": 1, "y": 1}, + {"matrix": [0, 5], "x": 2, "y": 1} + ] }, "LAYOUT_arrows": { - "layout": [{"label":"\u2191", "x":1, "y":0}, {"label":"\u2190", "x":0, "y":1}, {"label":"\u2193", "x":1, "y":1}, {"label":"\u2192", "x":2, "y":1}] + "layout": [ + {"matrix": [0, 1], "x": 1, "y": 0}, + + {"matrix": [0, 3], "x": 0, "y": 1}, + {"matrix": [0, 4], "x": 1, "y": 1}, + {"matrix": [0, 5], "x": 2, "y": 1} + ] } } - } +} diff --git a/keyboards/coarse/ixora/ixora.h b/keyboards/coarse/ixora/ixora.h deleted file mode 100644 index 92cf6586a6..0000000000 --- a/keyboards/coarse/ixora/ixora.h +++ /dev/null @@ -1,40 +0,0 @@ -#pragma once - -#define XXX KC_NO - -#include "quantum.h" - -// This a shortcut to help you visually see your layout. - -#define LAYOUT_full( \ - K00, K01, K02, \ - K03, K04, K05 \ -) \ -{ \ - { K00, K01, K02, K03, K04, K05 } \ -} - -#define LAYOUT_blocker_right( \ - K00, K01, \ - K03, K04, K05 \ -) \ -{ \ - { K00, K01, XXX, K03, K04, K05 } \ -} - -#define LAYOUT_blocker_left( \ - K01, K02, \ - K03, K04, K05 \ -) \ -{ \ - { XXX, K01, K02, K03, K04, K05 } \ -} - -#define LAYOUT_arrows( \ - K01, \ - K03, K04, K05 \ -) \ -{ \ - { XXX, K01, XXX, K03, K04, K05 } \ -} - |