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.c | |
parent | 86f6f682744b81bba1003e555f902af78dcdaad4 (diff) | |
download | qmk_firmware-0e984b6e7e216a62df0b5d53f6a8f0d4bc13dca3.tar.gz qmk_firmware-0e984b6e7e216a62df0b5d53f6a8f0d4bc13dca3.zip |
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.c')
-rw-r--r-- | quantum/quantum.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index ef751a2331..78601ce6bf 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -319,6 +319,17 @@ bool process_record_quantum(keyrecord_t *record) { set_output(OUTPUT_BLUETOOTH); return false; #endif +#ifndef NO_ACTION_ONESHOT + case ONESHOT_TOGGLE: + oneshot_toggle(); + break; + case ONESHOT_ENABLE: + oneshot_enable(); + break; + case ONESHOT_DISABLE: + oneshot_disable(); + break; +#endif } } |