aboutsummaryrefslogtreecommitdiff
path: root/quantum/quantum.h
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/quantum.h')
-rw-r--r--quantum/quantum.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/quantum/quantum.h b/quantum/quantum.h
index 6beab65a3..91b9170b1 100644
--- a/quantum/quantum.h
+++ b/quantum/quantum.h
@@ -182,30 +182,8 @@ typedef ioline_t pin_t;
182# define readPin(pin) palReadLine(pin) 182# define readPin(pin) palReadLine(pin)
183#endif 183#endif
184 184
185// Send string macros
186#define STRINGIZE(z) #z
187#define ADD_SLASH_X(y) STRINGIZE(\x##y)
188#define SYMBOL_STR(x) ADD_SLASH_X(x)
189
190#define SS_TAP_CODE 1
191#define SS_DOWN_CODE 2
192#define SS_UP_CODE 3
193
194#define SS_TAP(keycode) "\1" SYMBOL_STR(keycode)
195#define SS_DOWN(keycode) "\2" SYMBOL_STR(keycode)
196#define SS_UP(keycode) "\3" SYMBOL_STR(keycode)
197
198// `string` arguments must not be parenthesized
199#define SS_LCTRL(string) SS_DOWN(X_LCTRL) string SS_UP(X_LCTRL)
200#define SS_LGUI(string) SS_DOWN(X_LGUI) string SS_UP(X_LGUI)
201#define SS_LCMD(string) SS_LGUI(string)
202#define SS_LWIN(string) SS_LGUI(string)
203#define SS_LALT(string) SS_DOWN(X_LALT) string SS_UP(X_LALT)
204#define SS_LSFT(string) SS_DOWN(X_LSHIFT) string SS_UP(X_LSHIFT)
205#define SS_RALT(string) SS_DOWN(X_RALT) string SS_UP(X_RALT)
206#define SS_ALGR(string) SS_RALT(string)
207
208#define SEND_STRING(string) send_string_P(PSTR(string)) 185#define SEND_STRING(string) send_string_P(PSTR(string))
186#define SEND_STRING_DELAY(string, interval) send_string_with_delay_P(PSTR(string), interval)
209 187
210extern const bool ascii_to_shift_lut[128]; 188extern const bool ascii_to_shift_lut[128];
211extern const bool ascii_to_altgr_lut[128]; 189extern const bool ascii_to_altgr_lut[128];