summaryrefslogtreecommitdiff
path: root/keyboards/cu24/cu24.h
diff options
context:
space:
mode:
authorMechMerlin <30334081+mechmerlin@users.noreply.github.com>2018-04-12 10:03:50 -0700
committerJack Humbert <jack.humb@gmail.com>2018-04-12 13:03:50 -0400
commit5319667c5504ab28b5bdb6f81ae22ecfec5e4a46 (patch)
tree4fd6598bbe3c578aa181ae93023b56a90c9cbb4c /keyboards/cu24/cu24.h
parentf10a0ae54730d8f0c21cf608bd7a6dfeb747583b (diff)
Support upcoming caps_unlocked boards in QMK Configurator (#2738)
* Change KEYMAP macro to LAYOUT macro * Add CU24 QMK Configurator Support - Change KEYMAP macro to LAYOUT macro - Add new LAYOUTS to support a default numpad * QMK Configurator Support for CU75 Add LAYOUT_all to support all layouts Add corresponding info.json
Diffstat (limited to 'keyboards/cu24/cu24.h')
-rw-r--r--keyboards/cu24/cu24.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/keyboards/cu24/cu24.h b/keyboards/cu24/cu24.h
index e8e6b46ec8..d329182d23 100644
--- a/keyboards/cu24/cu24.h
+++ b/keyboards/cu24/cu24.h
@@ -22,7 +22,7 @@
// The following is an example using the Planck MIT layout
// The first section contains all of the arguments
// The second converts the arguments into a two-dimensional array
-#define KEYMAP( \
+#define LAYOUT_grid( \
k00, k01, k02, k03, \
k10, k11, k12, k13, \
k20, k21, k22, k23, \
@@ -39,4 +39,23 @@
{ k50, k51, k52, k53 } \
}
+#define LAYOUT_numpad( \
+ k00, k01, k02, k03, \
+ k10, k11, k12, k13, \
+ k20, k21, k22, k23, \
+ k30, k31, k32, \
+ k40, k41, k42, k43, \
+ k51, k52 \
+) \
+{ \
+ { k00, k01, k02, k03 }, \
+ { k10, k11, k12, k13 }, \
+ { k20, k21, k22, k23 }, \
+ { k30, k31, k32, KC_NO }, \
+ { k40, k41, k42, k43 }, \
+ { KC_NO, k51, k52, KC_NO } \
+}
+
+
+
#endif