qmk_firmware/quantum/process_keycode
Bob bc536b9b6d Switch process_combo to using global register and timer (#2561)
Since combos keep local state about what keys have been previously pressed, when combos are layered, multiple keypresses will register for any key with multiple combos assigned to it. In order to fix this, I switched process_combo to use a global keycode / keyrecord register and timer. When a keypress is consumed by a combo, it gets stored in the register and the timer is updated; when the next keypress takes too long or a key is pressed that isn't part of any combo, the buffer is emitted and the timer reset. This has a few side effects. For instance, I couldn't _not_ fix combo keys printing out of order while also fixing this bug, so combo keys print in order correctly when a combo fails. since combos no longer have local timers, the logic around when combos time out has changed. now that there is a single timer pressing any combo key (including one in a different combo) will reset the timer for all combos, making combo entry a little more lenient. Since combos no longer have local keycode / keyrecord state, there is an edge case where incomplete combo keys can be consumed. if you have a combo for a+s = tab and a combo for b+n = space, if you press a+b+n, only a space will be emitted. This is because when b+n completes successfully, it drops the register.
2019-04-08 14:07:15 -07:00
..
process_audio.c
process_audio.h
process_auto_shift.c
process_auto_shift.h
process_clicky.c Fix Audio Clicky by adding missing punctuation (#5171) 2019-02-18 09:53:38 -08:00
process_clicky.h
process_combo.c Switch process_combo to using global register and timer (#2561) 2019-04-08 14:07:15 -07:00
process_combo.h Switch process_combo to using global register and timer (#2561) 2019-04-08 14:07:15 -07:00
process_key_lock.c
process_key_lock.h
process_leader.c
process_leader.h
process_midi.c
process_midi.h
process_music.c
process_music.h
process_printer.c
process_printer.h
process_printer_bb.c
process_steno.c Fix Tx Bolt ghosting second character on key press (#5229) 2019-02-23 19:32:48 -08:00
process_steno.h
process_tap_dance.c
process_tap_dance.h
process_terminal.c Allows Terminal to use ModTap/LayerTap keys (#4586) 2019-01-17 17:51:04 -08:00
process_terminal.h
process_terminal_nop.h
process_ucis.c
process_ucis.h
process_unicode.c
process_unicode.h
process_unicode_common.c Unicode fix for new wincompose version (#5082) 2019-03-17 10:35:14 -07:00
process_unicode_common.h
process_unicodemap.c Remove problematic unicode_map stub definition in process_unicodemap.c (#5110) 2019-02-14 20:55:31 -08:00
process_unicodemap.h Remove problematic unicode_map stub definition in process_unicodemap.c (#5110) 2019-02-14 20:55:31 -08:00