1
0
Fork 0

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.
This commit is contained in:
Wojciech Siewierski 2016-03-13 00:18:20 +01:00
parent 8d55a12a95
commit 20dd9c0326
2 changed files with 19 additions and 0 deletions

View file

@ -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);