summaryrefslogtreecommitdiffstats
path: root/tmk_core/common/action.h
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2016-03-13 00:18:20 +0100
committerWojciech Siewierski <wojciech.siewierski@onet.pl>2016-03-13 00:18:20 +0100
commit20dd9c032616722a54174d53b0f8824f639b5263 (patch)
tree768efa3a7ca873d25596afcf015fa6cd9ec113ed /tmk_core/common/action.h
parent8d55a12a9538742f510087f14fc59eb813b2ef42 (diff)
downloadqmk_firmware-20dd9c032616722a54174d53b0f8824f639b5263.tar.gz
qmk_firmware-20dd9c032616722a54174d53b0f8824f639b5263.tar.xz
process_action may be called either with key cache or without it
If one wants to temporarily disable the key cache (for example because it interferes with a macro), `disable_action_cache` must be set to `true`. `process_action_nocache` is a simple wrapper doing just that for a single call.
Diffstat (limited to 'tmk_core/common/action.h')
-rw-r--r--tmk_core/common/action.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tmk_core/common/action.h b/tmk_core/common/action.h
index 8a4736d7b..34a794db2 100644
--- a/tmk_core/common/action.h
+++ b/tmk_core/common/action.h
@@ -59,6 +59,10 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt);
void action_function(keyrecord_t *record, uint8_t id, uint8_t opt);
/* Utilities for actions. */
+#if !defined(NO_ACTION_LAYER) && defined(PREVENT_STUCK_MODIFIERS)
+extern bool disable_action_cache;
+void process_action_nocache(keyrecord_t *record);
+#endif
void process_action(keyrecord_t *record);
void register_code(uint8_t code);
void unregister_code(uint8_t code);