diff options
Diffstat (limited to 'tmk_core/common/command.h')
-rw-r--r-- | tmk_core/common/command.h | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/tmk_core/common/command.h b/tmk_core/common/command.h index e6e67fae4..4f77be085 100644 --- a/tmk_core/common/command.h +++ b/tmk_core/common/command.h | |||
@@ -29,135 +29,135 @@ bool command_console_extra(uint8_t code); | |||
29 | 29 | ||
30 | #ifdef COMMAND_ENABLE | 30 | #ifdef COMMAND_ENABLE |
31 | uint8_t numkey2num(uint8_t code); | 31 | uint8_t numkey2num(uint8_t code); |
32 | bool command_proc(uint8_t code); | 32 | bool command_proc(uint8_t code); |
33 | #else | 33 | #else |
34 | #define command_proc(code) false | 34 | # define command_proc(code) false |
35 | #endif | 35 | #endif |
36 | 36 | ||
37 | #ifndef IS_COMMAND | 37 | #ifndef IS_COMMAND |
38 | #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT) | 38 | # define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT) |
39 | #endif | 39 | #endif |
40 | 40 | ||
41 | #ifndef MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | 41 | #ifndef MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS |
42 | #define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | 42 | # define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true |
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | #ifndef MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | 45 | #ifndef MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS |
46 | #define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | 46 | # define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true |
47 | #endif | 47 | #endif |
48 | 48 | ||
49 | #ifndef MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | 49 | #ifndef MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM |
50 | #define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | 50 | # define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false |
51 | #endif | 51 | #endif |
52 | 52 | ||
53 | #ifndef MAGIC_KEY_HELP | 53 | #ifndef MAGIC_KEY_HELP |
54 | #define MAGIC_KEY_HELP H | 54 | # define MAGIC_KEY_HELP H |
55 | #endif | 55 | #endif |
56 | 56 | ||
57 | #ifndef MAGIC_KEY_HELP_ALT | 57 | #ifndef MAGIC_KEY_HELP_ALT |
58 | #define MAGIC_KEY_HELP_ALT SLASH | 58 | # define MAGIC_KEY_HELP_ALT SLASH |
59 | #endif | 59 | #endif |
60 | 60 | ||
61 | #ifndef MAGIC_KEY_DEBUG | 61 | #ifndef MAGIC_KEY_DEBUG |
62 | #define MAGIC_KEY_DEBUG D | 62 | # define MAGIC_KEY_DEBUG D |
63 | #endif | 63 | #endif |
64 | 64 | ||
65 | #ifndef MAGIC_KEY_DEBUG_MATRIX | 65 | #ifndef MAGIC_KEY_DEBUG_MATRIX |
66 | #define MAGIC_KEY_DEBUG_MATRIX X | 66 | # define MAGIC_KEY_DEBUG_MATRIX X |
67 | #endif | 67 | #endif |
68 | 68 | ||
69 | #ifndef MAGIC_KEY_DEBUG_KBD | 69 | #ifndef MAGIC_KEY_DEBUG_KBD |
70 | #define MAGIC_KEY_DEBUG_KBD K | 70 | # define MAGIC_KEY_DEBUG_KBD K |
71 | #endif | 71 | #endif |
72 | 72 | ||
73 | #ifndef MAGIC_KEY_DEBUG_MOUSE | 73 | #ifndef MAGIC_KEY_DEBUG_MOUSE |
74 | #define MAGIC_KEY_DEBUG_MOUSE M | 74 | # define MAGIC_KEY_DEBUG_MOUSE M |
75 | #endif | 75 | #endif |
76 | 76 | ||
77 | #ifndef MAGIC_KEY_VERSION | 77 | #ifndef MAGIC_KEY_VERSION |
78 | #define MAGIC_KEY_VERSION V | 78 | # define MAGIC_KEY_VERSION V |
79 | #endif | 79 | #endif |
80 | 80 | ||
81 | #ifndef MAGIC_KEY_STATUS | 81 | #ifndef MAGIC_KEY_STATUS |
82 | #define MAGIC_KEY_STATUS S | 82 | # define MAGIC_KEY_STATUS S |
83 | #endif | 83 | #endif |
84 | 84 | ||
85 | #ifndef MAGIC_KEY_CONSOLE | 85 | #ifndef MAGIC_KEY_CONSOLE |
86 | #define MAGIC_KEY_CONSOLE C | 86 | # define MAGIC_KEY_CONSOLE C |
87 | #endif | 87 | #endif |
88 | 88 | ||
89 | #ifndef MAGIC_KEY_LAYER0 | 89 | #ifndef MAGIC_KEY_LAYER0 |
90 | #define MAGIC_KEY_LAYER0 0 | 90 | # define MAGIC_KEY_LAYER0 0 |
91 | #endif | 91 | #endif |
92 | 92 | ||
93 | #ifndef MAGIC_KEY_LAYER0_ALT | 93 | #ifndef MAGIC_KEY_LAYER0_ALT |
94 | #define MAGIC_KEY_LAYER0_ALT GRAVE | 94 | # define MAGIC_KEY_LAYER0_ALT GRAVE |
95 | #endif | 95 | #endif |
96 | 96 | ||
97 | #ifndef MAGIC_KEY_LAYER1 | 97 | #ifndef MAGIC_KEY_LAYER1 |
98 | #define MAGIC_KEY_LAYER1 1 | 98 | # define MAGIC_KEY_LAYER1 1 |
99 | #endif | 99 | #endif |
100 | 100 | ||
101 | #ifndef MAGIC_KEY_LAYER2 | 101 | #ifndef MAGIC_KEY_LAYER2 |
102 | #define MAGIC_KEY_LAYER2 2 | 102 | # define MAGIC_KEY_LAYER2 2 |
103 | #endif | 103 | #endif |
104 | 104 | ||
105 | #ifndef MAGIC_KEY_LAYER3 | 105 | #ifndef MAGIC_KEY_LAYER3 |
106 | #define MAGIC_KEY_LAYER3 3 | 106 | # define MAGIC_KEY_LAYER3 3 |
107 | #endif | 107 | #endif |
108 | 108 | ||
109 | #ifndef MAGIC_KEY_LAYER4 | 109 | #ifndef MAGIC_KEY_LAYER4 |
110 | #define MAGIC_KEY_LAYER4 4 | 110 | # define MAGIC_KEY_LAYER4 4 |
111 | #endif | 111 | #endif |
112 | 112 | ||
113 | #ifndef MAGIC_KEY_LAYER5 | 113 | #ifndef MAGIC_KEY_LAYER5 |
114 | #define MAGIC_KEY_LAYER5 5 | 114 | # define MAGIC_KEY_LAYER5 5 |
115 | #endif | 115 | #endif |
116 | 116 | ||
117 | #ifndef MAGIC_KEY_LAYER6 | 117 | #ifndef MAGIC_KEY_LAYER6 |
118 | #define MAGIC_KEY_LAYER6 6 | 118 | # define MAGIC_KEY_LAYER6 6 |
119 | #endif | 119 | #endif |
120 | 120 | ||
121 | #ifndef MAGIC_KEY_LAYER7 | 121 | #ifndef MAGIC_KEY_LAYER7 |
122 | #define MAGIC_KEY_LAYER7 7 | 122 | # define MAGIC_KEY_LAYER7 7 |
123 | #endif | 123 | #endif |
124 | 124 | ||
125 | #ifndef MAGIC_KEY_LAYER8 | 125 | #ifndef MAGIC_KEY_LAYER8 |
126 | #define MAGIC_KEY_LAYER8 8 | 126 | # define MAGIC_KEY_LAYER8 8 |
127 | #endif | 127 | #endif |
128 | 128 | ||
129 | #ifndef MAGIC_KEY_LAYER9 | 129 | #ifndef MAGIC_KEY_LAYER9 |
130 | #define MAGIC_KEY_LAYER9 9 | 130 | # define MAGIC_KEY_LAYER9 9 |
131 | #endif | 131 | #endif |
132 | 132 | ||
133 | #ifndef MAGIC_KEY_BOOTLOADER | 133 | #ifndef MAGIC_KEY_BOOTLOADER |
134 | #define MAGIC_KEY_BOOTLOADER B | 134 | # define MAGIC_KEY_BOOTLOADER B |
135 | #endif | 135 | #endif |
136 | 136 | ||
137 | #ifndef MAGIC_KEY_BOOTLOADER_ALT | 137 | #ifndef MAGIC_KEY_BOOTLOADER_ALT |
138 | #define MAGIC_KEY_BOOTLOADER_ALT ESC | 138 | # define MAGIC_KEY_BOOTLOADER_ALT ESC |
139 | #endif | 139 | #endif |
140 | 140 | ||
141 | #ifndef MAGIC_KEY_LOCK | 141 | #ifndef MAGIC_KEY_LOCK |
142 | #define MAGIC_KEY_LOCK CAPS | 142 | # define MAGIC_KEY_LOCK CAPS |
143 | #endif | 143 | #endif |
144 | 144 | ||
145 | #ifndef MAGIC_KEY_EEPROM | 145 | #ifndef MAGIC_KEY_EEPROM |
146 | #define MAGIC_KEY_EEPROM E | 146 | # define MAGIC_KEY_EEPROM E |
147 | #endif | 147 | #endif |
148 | 148 | ||
149 | #ifndef MAGIC_KEY_EEPROM_CLEAR | 149 | #ifndef MAGIC_KEY_EEPROM_CLEAR |
150 | #define MAGIC_KEY_EEPROM_CLEAR BSPACE | 150 | # define MAGIC_KEY_EEPROM_CLEAR BSPACE |
151 | #endif | 151 | #endif |
152 | 152 | ||
153 | #ifndef MAGIC_KEY_NKRO | 153 | #ifndef MAGIC_KEY_NKRO |
154 | #define MAGIC_KEY_NKRO N | 154 | # define MAGIC_KEY_NKRO N |
155 | #endif | 155 | #endif |
156 | 156 | ||
157 | #ifndef MAGIC_KEY_SLEEP_LED | 157 | #ifndef MAGIC_KEY_SLEEP_LED |
158 | #define MAGIC_KEY_SLEEP_LED Z | 158 | # define MAGIC_KEY_SLEEP_LED Z |
159 | 159 | ||
160 | #endif | 160 | #endif |
161 | 161 | ||
162 | #define XMAGIC_KC(key) KC_ ## key | 162 | #define XMAGIC_KC(key) KC_##key |
163 | #define MAGIC_KC(key) XMAGIC_KC(key) | 163 | #define MAGIC_KC(key) XMAGIC_KC(key) |