aboutsummaryrefslogtreecommitdiff
path: root/keymap-wrapper.h
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2022-09-23 12:48:47 +0100
committerdakkar <dakkar@thenautilus.net>2022-09-23 12:52:38 +0100
commitb7ffead547641b904199547d4bd2607b35c4b0bc (patch)
tree72dbd5d2993b88f516f19719a3e1669f831439a9 /keymap-wrapper.h
parentchange names for plugins header files (diff)
downloadkeyboardio-model01-b7ffead547641b904199547d4bd2607b35c4b0bc.tar.gz
keyboardio-model01-b7ffead547641b904199547d4bd2607b35c4b0bc.tar.bz2
keyboardio-model01-b7ffead547641b904199547d4bd2607b35c4b0bc.zip
now it compiles
Diffstat (limited to 'keymap-wrapper.h')
-rw-r--r--keymap-wrapper.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/keymap-wrapper.h b/keymap-wrapper.h
index 9418ebb..85fc4a3 100644
--- a/keymap-wrapper.h
+++ b/keymap-wrapper.h
@@ -2,6 +2,7 @@
#pragma once
#include "Kaleidoscope-MouseKeys.h"
+#include <Kaleidoscope-Colormap.h>
#include "keymap-layers.h"
/* hack hack hack!
@@ -25,17 +26,22 @@
#define ColorKeymaps(layers...) KEYMAPS(layers)
+#define MYMAP_STACKED KEYMAP_STACKED
+
#include "keymaps.h"
#undef CK
#undef ColorKeymaps
+#undef MYMAP_STACKED
#define CK(k,c) c
-#define ColorKeymaps(layers...) \
- static constexpr uint8_t color_keymaps[][Kaleidoscope.device().matrix_rows * Kaleidoscope.device().matrix_columns] = { layers };
+#define ColorKeymaps(layers...) COLORMAPS(layers)
+
+#define MYMAP_STACKED COLORMAP_STACKED
#include "keymaps.h"
#undef CK
#undef ColorKeymaps
+#undef MYMAP_STACKED