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 Adds support for Planck Rev 6 (#2666) 2018-07-16 11:48:31 -04:00
process_audio.h Adds support for Planck Rev 6 (#2666) 2018-07-16 11:48:31 -04:00
process_auto_shift.c Add non-US Hash and Backslash to AutoShift handling 2018-10-06 20:43:12 -04:00
process_auto_shift.h Add on/off/toggle keycodes for Auto Shift 2017-12-20 14:38:56 -05:00
process_clicky.c Fix Audio Clicky by adding missing punctuation (#5171) 2019-02-18 09:53:38 -08:00
process_clicky.h Add On/Off keycodes 2018-09-25 13:28:36 -07:00
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 Fix for issue https://github.com/qmk/qmk_firmware/issues/1751 2017-10-29 20:05:54 -04:00
process_key_lock.h
process_leader.c Fix leader processing 2018-12-29 08:17:43 -08:00
process_leader.h Fix up process_leader to be a bit more optimized (#4662) 2018-12-20 16:54:06 -08:00
process_midi.c Added bending to MIDI (#2740) 2018-04-18 22:22:08 -04:00
process_midi.h Merge ChibiOS and LUFA descriptor support (#2362) 2018-02-08 15:07:46 -05:00
process_music.c Adds support for Planck Rev 6 (#2666) 2018-07-16 11:48:31 -04:00
process_music.h Adds support for Planck Rev 6 (#2666) 2018-07-16 11:48:31 -04:00
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 Improve state/chord handling and clean up namespace 2018-04-07 17:12:44 -04:00
process_tap_dance.c Register the interrupting keycode in the tap dance state struct 2018-12-30 08:35:12 -08:00
process_tap_dance.h Register the interrupting keycode in the tap dance state struct 2018-12-30 08:35:12 -08:00
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 Overhaul Unicode Common functionality (#4325) 2018-12-19 08:39:24 -08:00
process_ucis.h Overhaul Unicode Common functionality (#4325) 2018-12-19 08:39:24 -08:00
process_unicode.c Overhaul Unicode Common functionality (#4325) 2018-12-19 08:39:24 -08:00
process_unicode.h Overhaul Unicode Common functionality (#4325) 2018-12-19 08:39:24 -08:00
process_unicode_common.c Unicode fix for new wincompose version (#5082) 2019-03-17 10:35:14 -07:00
process_unicode_common.h Overhaul Unicode Common functionality (#4325) 2018-12-19 08:39:24 -08:00
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