aboutsummaryrefslogtreecommitdiff
path: root/keymap-wrapper.h
blob: b39b669242abeb69cbc4b7eb2551a15641bcda49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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::OFF
#define cBase(x) DakkarColor::BASE
#define cLnch(x) DakkarColor::LAUNCH
#define cWind(x) DakkarColor::WINDOW
#define cView(x) DakkarColor::VIEWPORT
#define cMs(x) DakkarColor::MOUSE
#define cMsW(x) DakkarColor::MOUSE_WARP
#define cMsB(x) DakkarColor::MOUSE_BUTTON
#define cFunc(x) DakkarColor::FUNCTION
 
#define ColorKeymaps(layers...) \
  static constexpr DakkarColor::color color_keymaps[][ROWS][COLS] = { layers };
 
#include "keymaps.h"
 
#undef cOff
#undef cBase
#undef cLnch
#undef cWind
#undef cView
#undef cMs
#undef cMsW
#undef cMsB
#undef cFunc
 
#undef ColorKeymaps