diff options
author | Drashna Jaelre <drashna@live.com> | 2021-03-01 08:57:02 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-01 08:57:02 -0800 |
commit | 0e984b6e7e216a62df0b5d53f6a8f0d4bc13dca3 (patch) | |
tree | 1e85b1d15a9ea6ad86fcb6ae8d084f926dd11ab8 /quantum/quantum_keycodes.h | |
parent | 86f6f682744b81bba1003e555f902af78dcdaad4 (diff) |
Add ability to toggle One Shot functionality (#4198)
Co-authored-by: Nick Brassel <nick@tzarc.org>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'quantum/quantum_keycodes.h')
-rw-r--r-- | quantum/quantum_keycodes.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h index e0f5dbc61e..63945a17ca 100644 --- a/quantum/quantum_keycodes.h +++ b/quantum/quantum_keycodes.h @@ -578,6 +578,10 @@ enum quantum_keycodes { #endif + ONESHOT_ENABLE, + ONESHOT_DISABLE, + ONESHOT_TOGGLE, + // always leave at the end SAFE_RANGE }; @@ -885,3 +889,8 @@ enum quantum_keycodes { #define DM_RSTP DYN_REC_STOP #define DM_PLY1 DYN_MACRO_PLAY1 #define DM_PLY2 DYN_MACRO_PLAY2 + +// One Shot toggle +#define OS_TOGG ONESHOT_TOGGLE +#define OS_ON ONESHOT_ENABLE +#define OS_OFF ONESHOT_DISABLE |