diff options
author | Drashna Jaelre <drashna@live.com> | 2019-04-07 19:19:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-07 19:19:00 -0700 |
commit | 908966bdf36605301d27cdcae82c3201c156a43f (patch) | |
tree | 5749c833ad1b79de8958bdcfe2ddf2e1f06012a2 /quantum/quantum.h | |
parent | 6a4c54870cff157f1056ca65363c9e862920cbc9 (diff) | |
parent | d15bb05c935e378f2e1e912a46c3114697dd00e4 (diff) | |
download | qmk_firmware-908966bdf36605301d27cdcae82c3201c156a43f.tar.gz |
Fixed tap/down/up handling in dynamic keymap macros (#5363)
* Fixed tap/down/up handling in dynamic keymap macros
* Added SS_TAP_CODE, SS_DOWN_CODE, SS_UP_CODE
Diffstat (limited to 'quantum/quantum.h')
-rw-r--r-- | quantum/quantum.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/quantum/quantum.h b/quantum/quantum.h index d0b2bedb1..c7fce9a0f 100644 --- a/quantum/quantum.h +++ b/quantum/quantum.h @@ -187,6 +187,10 @@ extern uint32_t default_layer_state; #define ADD_SLASH_X(y) STRINGIZE(\x ## y) #define SYMBOL_STR(x) ADD_SLASH_X(x) +#define SS_TAP_CODE 1 +#define SS_DOWN_CODE 2 +#define SS_UP_CODE 3 + #define SS_TAP(keycode) "\1" SYMBOL_STR(keycode) #define SS_DOWN(keycode) "\2" SYMBOL_STR(keycode) #define SS_UP(keycode) "\3" SYMBOL_STR(keycode) |