Leader key implementation (#326)
* implements leader key for planck experimental * allows override of leader timeout * adds ability to use the leader key in seq * fixes leader keycode * adds chording prototype * fixes keycode detection * moves music mode to quantum.c * disables chording by default * updates process_action functions to return bool
This commit is contained in:
committed by
Jack Humbert
parent
79d26f331a
commit
1a8c0dd22d
@@ -70,7 +70,9 @@ void process_action_nocache(keyrecord_t *record)
|
||||
#endif
|
||||
|
||||
__attribute__ ((weak))
|
||||
void process_action_kb(keyrecord_t *record) {}
|
||||
bool process_action_quantum(keyrecord_t *record) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void process_action(keyrecord_t *record)
|
||||
{
|
||||
@@ -89,7 +91,8 @@ void process_action(keyrecord_t *record)
|
||||
}
|
||||
#endif
|
||||
|
||||
process_action_kb(record);
|
||||
if (!process_action_quantum(record))
|
||||
return;
|
||||
|
||||
action_t action = store_or_get_action(event.pressed, event.key);
|
||||
dprint("ACTION: "); debug_action(action);
|
||||
|
Reference in New Issue
Block a user