Auto shift: support repeats and early registration (#9826)

Fixes #7048.

Co-authored-by: IsaacElenbaas <isaacelenbaas@gmail.com>
This commit is contained in:
Dean Scarff 2020-11-28 03:35:22 +11:00 committed by GitHub
parent 63a06fe220
commit fd8f65959e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 195 additions and 73 deletions

View file

@ -58,6 +58,10 @@ float bell_song[][2] = SONG(TERMINAL_SOUND);
# endif
#endif
#ifdef AUTO_SHIFT_ENABLE
# include "process_auto_shift.h"
#endif
static void do_code16(uint16_t code, void (*f)(uint8_t)) {
switch (code) {
case QK_MODS ... QK_MODS_MAX:
@ -671,6 +675,10 @@ void matrix_scan_quantum() {
dip_switch_read(false);
#endif
#ifdef AUTO_SHIFT_ENABLE
autoshift_matrix_scan();
#endif
matrix_scan_kb();
}