Add per-event user hook function to QMK
This commit is contained in:
parent
80eefb09ac
commit
ef21a855e6
2 changed files with 8 additions and 0 deletions
|
@ -53,6 +53,9 @@ void action_exec(keyevent_t event)
|
|||
#endif
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
void process_action_user(keyrecord_t *record) {}
|
||||
|
||||
void process_action(keyrecord_t *record)
|
||||
{
|
||||
keyevent_t event = record->event;
|
||||
|
@ -62,6 +65,8 @@ void process_action(keyrecord_t *record)
|
|||
|
||||
if (IS_NOEVENT(event)) { return; }
|
||||
|
||||
process_action_user(record);
|
||||
|
||||
action_t action = layer_switch_get_action(event.key);
|
||||
dprint("ACTION: "); debug_action(action);
|
||||
#ifndef NO_ACTION_LAYER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue