aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common/action_util.h
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-03-01 08:57:02 -0800
committerGitHub <noreply@github.com>2021-03-01 08:57:02 -0800
commit0e984b6e7e216a62df0b5d53f6a8f0d4bc13dca3 (patch)
tree1e85b1d15a9ea6ad86fcb6ae8d084f926dd11ab8 /tmk_core/common/action_util.h
parent86f6f682744b81bba1003e555f902af78dcdaad4 (diff)
downloadqmk_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 'tmk_core/common/action_util.h')
-rw-r--r--tmk_core/common/action_util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tmk_core/common/action_util.h b/tmk_core/common/action_util.h
index ff29f79b0..f2b3897ae 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);
85void oneshot_layer_changed_user(uint8_t layer); 85void oneshot_layer_changed_user(uint8_t layer);
86void oneshot_layer_changed_kb(uint8_t layer); 86void oneshot_layer_changed_kb(uint8_t layer);
87 87
88void oneshot_toggle(void);
89void oneshot_enable(void);
90void oneshot_disable(void);
91bool is_oneshot_enabled(void);
92
88/* inspect */ 93/* inspect */
89uint8_t has_anymod(void); 94uint8_t has_anymod(void);
90 95