aboutsummaryrefslogtreecommitdiff
path: root/keymap-wrapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'keymap-wrapper.h')
-rw-r--r--keymap-wrapper.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/keymap-wrapper.h b/keymap-wrapper.h
new file mode 100644
index 0000000..08e709c
--- /dev/null
+++ b/keymap-wrapper.h
@@ -0,0 +1,55 @@
+#pragma once
+
+#define cOff(x) x
+#define cBase(x) x
+#define cLnch(x) x
+#define cWind(x) x
+#define cView(x) x
+#define cMs(x) x
+#define cMsW(x) x
+#define cMsB(x) x
+#define cFunc(x) x
+
+#define ColorKeymaps(layers...) KEYMAPS(layers)
+
+#include "keymaps.h"
+
+
+#undef cOff
+#undef cBase
+#undef cLnch
+#undef cWind
+#undef cView
+#undef cMs
+#undef cMsW
+#undef cMsB
+#undef cFunc
+
+#undef ColorKeymaps
+
+#define cOff(x) DakkarColor::color::OFF
+#define cBase(x) DakkarColor::color::BASE
+#define cLnch(x) DakkarColor::color::LAUNCH
+#define cWind(x) DakkarColor::color::WINDOW
+#define cView(x) DakkarColor::color::VIEWPORT
+#define cMs(x) DakkarColor::color::MOUSE
+#define cMsW(x) DakkarColor::color::MOUSE_WARP
+#define cMsB(x) DakkarColor::color::MOUSE_BUTTON
+#define cFunc(x) DakkarColor::color::FUNCTION
+
+#define ColorKeymaps(layers...) \
+ static constexpr uint8_t color_keymaps[][ROWS][COLS] PROGMEM = { layers };
+
+#include "keymaps.h"
+
+#undef cOff
+#undef cBase
+#undef cLnch
+#undef cWind
+#undef cView
+#undef cMs
+#undef cMsW
+#undef cMsB
+#undef cFunc
+
+#undef ColorKeymaps