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 /tmk_core/common/action_util.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 'tmk_core/common/action_util.h')
-rw-r--r-- | tmk_core/common/action_util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tmk_core/common/action_util.h b/tmk_core/common/action_util.h index ff29f79b09..f2b3897ae5 100644 --- a/tmk_core/common/action_util.h +++ b/tmk_core/common/action_util.h @@ -85,6 +85,11 @@ void oneshot_mods_changed_kb(uint8_t mods); void oneshot_layer_changed_user(uint8_t layer); void oneshot_layer_changed_kb(uint8_t layer); +void oneshot_toggle(void); +void oneshot_enable(void); +void oneshot_disable(void); +bool is_oneshot_enabled(void); + /* inspect */ uint8_t has_anymod(void); |