Move small macropad-ish layouts to data driven (#20341)
This commit is contained in:
@@ -18,19 +18,23 @@
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
{"label":"K00 (D3,D4)", "x":0, "y":0},
|
||||
{"label":"K11 (F4,D0)", "x":1, "y":0},
|
||||
{"label":"K02 (D3,D1)", "x":2, "y":0},
|
||||
{"label":"K20 (B0,D4)", "x":0, "y":1.5},
|
||||
{"label":"K31 (B2,D0)", "x":1, "y":1.5},
|
||||
{"label":"K22 (B0,D1)", "x":2, "y":1.5},
|
||||
{"label":"K40 (F7,D4)", "x":0, "y":2.5},
|
||||
{"label":"K51 (B6,D0)", "x":1, "y":2.5},
|
||||
{"label":"K42 (F7,D1)", "x":2, "y":2.5},
|
||||
{"label":"K61 (B1,D0)", "x":1, "y":4.5},
|
||||
{"label":"K70 (F5,D4)", "x":0, "y":5.5},
|
||||
{"label":"K81 (F6,D0)", "x":1, "y":5.5},
|
||||
{"label":"K72 (F5,D1)", "x":2, "y":5.5}
|
||||
{"matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"matrix": [1, 1], "x": 1, "y": 0},
|
||||
{"matrix": [0, 2], "x": 2, "y": 0},
|
||||
|
||||
{"matrix": [2, 0], "x": 0, "y": 1.5},
|
||||
{"matrix": [3, 1], "x": 1, "y": 1.5},
|
||||
{"matrix": [2, 2], "x": 2, "y": 1.5},
|
||||
|
||||
{"matrix": [4, 0], "x": 0, "y": 2.5},
|
||||
{"matrix": [5, 1], "x": 1, "y": 2.5},
|
||||
{"matrix": [4, 2], "x": 2, "y": 2.5},
|
||||
|
||||
{"matrix": [6, 1], "x": 1, "y": 4.5},
|
||||
|
||||
{"matrix": [7, 0], "x": 0, "y": 5.5},
|
||||
{"matrix": [8, 1], "x": 1, "y": 5.5},
|
||||
{"matrix": [7, 2], "x": 2, "y": 5.5}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@@ -1,38 +0,0 @@
|
||||
/* Copyright 2021 AAClawson (AlisGraveNil)
|
||||
*
|
||||
* 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 LAYOUT( \
|
||||
K00, K11, K02, \
|
||||
K20, K31, K22, \
|
||||
K40, K51, K42, \
|
||||
\
|
||||
K61, \
|
||||
K70, K81, K72 \
|
||||
) { \
|
||||
{ K00, KC_NO, K02 }, \
|
||||
{ KC_NO, K11, KC_NO }, \
|
||||
{ K20, KC_NO, K22 }, \
|
||||
{ KC_NO, K31, KC_NO }, \
|
||||
{ K40, KC_NO, K42 }, \
|
||||
{ KC_NO, K51, KC_NO }, \
|
||||
{ KC_NO, K61, KC_NO }, \
|
||||
{ K70, KC_NO, K72 }, \
|
||||
{ KC_NO, K81, KC_NO }, \
|
||||
}
|
Reference in New Issue
Block a user