diff options
Diffstat (limited to 'tmk_core/common/action.h')
-rw-r--r-- | tmk_core/common/action.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tmk_core/common/action.h b/tmk_core/common/action.h index 8cb4722c6..3d357b33b 100644 --- a/tmk_core/common/action.h +++ b/tmk_core/common/action.h | |||
@@ -53,6 +53,9 @@ typedef struct { | |||
53 | #ifndef NO_ACTION_TAPPING | 53 | #ifndef NO_ACTION_TAPPING |
54 | tap_t tap; | 54 | tap_t tap; |
55 | #endif | 55 | #endif |
56 | #ifdef COMBO_ENABLE | ||
57 | uint16_t keycode; | ||
58 | #endif | ||
56 | } keyrecord_t; | 59 | } keyrecord_t; |
57 | 60 | ||
58 | /* Execute action per keyevent */ | 61 | /* Execute action per keyevent */ |
@@ -60,6 +63,7 @@ void action_exec(keyevent_t event); | |||
60 | 63 | ||
61 | /* action for key */ | 64 | /* action for key */ |
62 | action_t action_for_key(uint8_t layer, keypos_t key); | 65 | action_t action_for_key(uint8_t layer, keypos_t key); |
66 | action_t action_for_keycode(uint16_t keycode); | ||
63 | 67 | ||
64 | /* macro */ | 68 | /* macro */ |
65 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt); | 69 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt); |
@@ -111,6 +115,7 @@ void clear_keyboard_but_mods(void); | |||
111 | void clear_keyboard_but_mods_and_keys(void); | 115 | void clear_keyboard_but_mods_and_keys(void); |
112 | void layer_switch(uint8_t new_layer); | 116 | void layer_switch(uint8_t new_layer); |
113 | bool is_tap_key(keypos_t key); | 117 | bool is_tap_key(keypos_t key); |
118 | bool is_tap_record(keyrecord_t *record); | ||
114 | bool is_tap_action(action_t action); | 119 | bool is_tap_action(action_t action); |
115 | 120 | ||
116 | #ifndef NO_ACTION_TAPPING | 121 | #ifndef NO_ACTION_TAPPING |