diff options
| -rw-r--r-- | tmk_core/common/action.c | 5 | ||||
| -rw-r--r-- | tmk_core/common/action.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c index 4197c53ed..c6595196f 100644 --- a/tmk_core/common/action.c +++ b/tmk_core/common/action.c | |||
| @@ -53,6 +53,9 @@ void action_exec(keyevent_t event) | |||
| 53 | #endif | 53 | #endif |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | __attribute__ ((weak)) | ||
| 57 | void process_action_user(keyrecord_t *record) {} | ||
| 58 | |||
| 56 | void process_action(keyrecord_t *record) | 59 | void process_action(keyrecord_t *record) |
| 57 | { | 60 | { |
| 58 | keyevent_t event = record->event; | 61 | keyevent_t event = record->event; |
| @@ -62,6 +65,8 @@ void process_action(keyrecord_t *record) | |||
| 62 | 65 | ||
| 63 | if (IS_NOEVENT(event)) { return; } | 66 | if (IS_NOEVENT(event)) { return; } |
| 64 | 67 | ||
| 68 | process_action_user(record); | ||
| 69 | |||
| 65 | action_t action = layer_switch_get_action(event.key); | 70 | action_t action = layer_switch_get_action(event.key); |
| 66 | dprint("ACTION: "); debug_action(action); | 71 | dprint("ACTION: "); debug_action(action); |
| 67 | #ifndef NO_ACTION_LAYER | 72 | #ifndef NO_ACTION_LAYER |
diff --git a/tmk_core/common/action.h b/tmk_core/common/action.h index 8a4736d7b..141dc3fca 100644 --- a/tmk_core/common/action.h +++ b/tmk_core/common/action.h | |||
| @@ -58,6 +58,9 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt); | |||
| 58 | /* user defined special function */ | 58 | /* user defined special function */ |
| 59 | void action_function(keyrecord_t *record, uint8_t id, uint8_t opt); | 59 | void action_function(keyrecord_t *record, uint8_t id, uint8_t opt); |
| 60 | 60 | ||
| 61 | /* user-defined (pre)processing of each key event */ | ||
| 62 | void process_action_user(keyrecord_t *record); | ||
| 63 | |||
| 61 | /* Utilities for actions. */ | 64 | /* Utilities for actions. */ |
| 62 | void process_action(keyrecord_t *record); | 65 | void process_action(keyrecord_t *record); |
| 63 | void register_code(uint8_t code); | 66 | void register_code(uint8_t code); |
