aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/common')
-rw-r--r--tmk_core/common/action.c7
-rw-r--r--tmk_core/common/action.h2
-rw-r--r--tmk_core/common/matrix.h4
3 files changed, 8 insertions, 5 deletions
diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c
index 081e90b2d..c026b96d9 100644
--- a/tmk_core/common/action.c
+++ b/tmk_core/common/action.c
@@ -70,7 +70,9 @@ void process_action_nocache(keyrecord_t *record)
70#endif 70#endif
71 71
72__attribute__ ((weak)) 72__attribute__ ((weak))
73void process_action_kb(keyrecord_t *record) {} 73bool process_action_quantum(keyrecord_t *record) {
74 return true;
75}
74 76
75void process_action(keyrecord_t *record) 77void process_action(keyrecord_t *record)
76{ 78{
@@ -89,7 +91,8 @@ void process_action(keyrecord_t *record)
89 } 91 }
90#endif 92#endif
91 93
92 process_action_kb(record); 94 if (!process_action_quantum(record))
95 return;
93 96
94 action_t action = store_or_get_action(event.pressed, event.key); 97 action_t action = store_or_get_action(event.pressed, event.key);
95 dprint("ACTION: "); debug_action(action); 98 dprint("ACTION: "); debug_action(action);
diff --git a/tmk_core/common/action.h b/tmk_core/common/action.h
index 44ec3047b..7d1cbafe9 100644
--- a/tmk_core/common/action.h
+++ b/tmk_core/common/action.h
@@ -59,7 +59,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt);
59void action_function(keyrecord_t *record, uint8_t id, uint8_t opt); 59void action_function(keyrecord_t *record, uint8_t id, uint8_t opt);
60 60
61/* keyboard-specific key event (pre)processing */ 61/* keyboard-specific key event (pre)processing */
62void process_action_kb(keyrecord_t *record); 62bool process_action_quantum(keyrecord_t *record);
63 63
64/* Utilities for actions. */ 64/* Utilities for actions. */
65#if !defined(NO_ACTION_LAYER) && defined(PREVENT_STUCK_MODIFIERS) 65#if !defined(NO_ACTION_LAYER) && defined(PREVENT_STUCK_MODIFIERS)
diff --git a/tmk_core/common/matrix.h b/tmk_core/common/matrix.h
index 0b013fc98..ad0871bfb 100644
--- a/tmk_core/common/matrix.h
+++ b/tmk_core/common/matrix.h
@@ -64,8 +64,8 @@ void matrix_power_up(void);
64void matrix_power_down(void); 64void matrix_power_down(void);
65 65
66/* keyboard-specific setup/loop functionality */ 66/* keyboard-specific setup/loop functionality */
67void matrix_init_kb(void); 67void matrix_init_quantum(void);
68void matrix_scan_kb(void); 68void matrix_scan_quantum(void);
69 69
70#ifdef __cplusplus 70#ifdef __cplusplus
71} 71}