1
0
Fork 0

Move single LAYOUT_alls to data driven (#20430)

This commit is contained in:
Ryan 2023-04-15 21:08:15 +10:00 committed by GitHub
parent a84528f853
commit 172a40686b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
523 changed files with 18787 additions and 20535 deletions

View file

@ -1,32 +0,0 @@
/*
Copyright 2021 keebnewb
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "quantum.h"
#define ___ KC_NO
#define LAYOUT_all( \
k00, k13, k14, k12, k10, \
k11, k04, k02, k03, \
k22, k32, k21, k01 \
){ \
{ k00, k01, k02, k03, k04 }, \
{ k10, k11, k12, k13, k14 }, \
{ ___, k21, k22, ___, ___ }, \
{ ___, ___, k32, ___, ___ } \
}

View file

@ -21,21 +21,22 @@
"layouts": {
"LAYOUT_all": {
"layout": [
{"label":"k00", "x":0, "y":0},
{"label":"k13", "x":1, "y":0},
{"label":"k14", "x":2, "y":0},
{"label":"k12", "x":3, "y":0},
{"label":"k10", "x":4, "y":0},
{"matrix": [0, 0], "x": 0, "y": 0},
{"matrix": [1, 3], "x": 1, "y": 0},
{"matrix": [1, 4], "x": 2, "y": 0},
{"matrix": [1, 2], "x": 3, "y": 0},
{"matrix": [1, 0], "x": 4, "y": 0},
{"label":"k11", "x":0.25, "y":1},
{"label":"k04", "x":1.25, "y":1},
{"label":"k02", "x":2.25, "y":1},
{"label":"k03", "x":3.25, "y":1, "w":1.75},
{"matrix": [1, 1], "x": 0.25, "y": 1},
{"matrix": [0, 4], "x": 1.25, "y": 1},
{"matrix": [0, 2], "x": 2.25, "y": 1},
{"matrix": [0, 3], "x": 3.25, "y": 1, "w": 1.75},
{"label":"k22", "x":0.25, "y":2, "w":2.75},
{"label":"k32", "x":3, "y":3},
{"label":"k21", "x":3, "y":2, "w":2},
{"label":"k01", "x":4, "y":3}
{"matrix": [2, 2], "x": 0.25, "y": 2, "w": 2.75},
{"matrix": [3, 2], "x": 3, "y": 3},
{"matrix": [2, 1], "x": 3, "y": 2, "w": 2},
{"matrix": [0, 1], "x": 4, "y": 3}
]
}
}