summaryrefslogtreecommitdiffstats
path: root/quantum/process_keycode/process_combo.c
Commit message (Collapse)AuthorAgeFilesLines
* [Core] Refactor `keyevent_t` for 1ms timing resolution (#15847)Stefan Kerkmann2023-04-031-5/+5
|
* Remove use of keymap.h (#20004)Joel Challis2023-03-271-0/+1
|
* Add combo hook to allow per layer combo reference layers. (#16699)Eric.a Gebhart2023-02-131-1/+13
| | | | | Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Sergey Vlasov <sigprof@gmail.com>
* Normalise Combo keycodes (#18877)Ryan2022-10-271-3/+3
|
* Fix Caps Word capitalization when used with Combos + Auto Shift. (#17549)Pascal Getreuer2022-08-131-0/+9
|
* Add support for encoder mapping. (#13286)Nick Brassel2022-03-091-9/+2
|
* Format code according to conventions (#16322)QMK Bot2022-02-121-12/+28
|
* Combo `TAP_CODE_DELAY` and `clear_weak_mods` (#15866)Pete Sevander2022-01-281-0/+13
|
* New combo configuration options (#15083)Pete Sevander2022-01-091-1/+38
| | | Co-authored-by: precondition <57645186+precondition@users.noreply.github.com>
* Manually format develop (#15003)Joel Challis2021-11-011-89/+95
|
* Fix `combo_disable` (#13988)Pete Sevander2021-08-141-8/+10
| | | | | | - Dump key buffer when combos are disabled. - Recursive calls to `dump_key_buffer` need to start dumping the buffer from index i+1 to avoid possible infinite loops. - Handle combo key releases even though combo processing is disabled.
* Process combos earlier & overlapping combos (#8591)Pete Sevander2021-08-061-99/+449
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Combo processing improvements. Now it is possible to use ModTap and LayerTap keys as part of combos. Overlapping combos also don't trigger all the combos, just exactly the one that you press. New settings: - COMBO_MUST_HOLD_MODS - COMBO_MOD_TERM - COMBO_TERM_PER_COMBO - COMBO_MUST_HOLD_PER_COMBO - COMBO_STRICT_TIMER - COMBO_NO_TIMER * Remove the size flags from combo_t struct boolean members. This in the end actually saves space as the members are accessed so many times. The amount of operations needed to access the bits uses more memory than setting the size saves. * Fix `process_combo_key_release` not called correctly with tap-only combos * Fix not passing a pointer when NO_ACTION_TAPPING is defined. * Docs for `COMBO_ONLY_FROM_LAYER` * Update docs/feature_combo.md Co-authored-by: precondition <57645186+precondition@users.noreply.github.com> * Update quantum/process_keycode/process_combo.c Co-authored-by: precondition <57645186+precondition@users.noreply.github.com> * Add `EXTRA_SHORT_COMBOS` option. Stuff combo's `disabled` and `active` flags into `state`. Possibly can save some space. * Add more examples and clarify things with dict management system. - Simple examples now has a combo that has modifiers included. - The slightly more advanced examples now are actually more advanced instead of just `tap_code16(<modded-keycode>)`. - Added a note that `COMBO_ACTION`s are not needed anymore as you can just use custom keycodes. - Added a note that the `g/keymap_combo.h` macros use the `process_combo_event` function and that it is not usable in one's keymap afterwards. * Update docs/feature_combo.md Co-authored-by: precondition <57645186+precondition@users.noreply.github.com> * Update docs/feature_combo.md Co-authored-by: precondition <57645186+precondition@users.noreply.github.com> * Update docs/feature_combo.md Co-authored-by: precondition <57645186+precondition@users.noreply.github.com> * Update docs/feature_combo.md Co-authored-by: precondition <57645186+precondition@users.noreply.github.com> * Update docs/feature_combo.md Co-authored-by: precondition <57645186+precondition@users.noreply.github.com> * Change "the" combo action example to "email" example. * Update docs/feature_combo.md Co-authored-by: precondition <57645186+precondition@users.noreply.github.com> * Fix sneaky infinite loop with `combo_disable()` No need to call `dump_key_buffer` when disabling combos because the buffer is either being dumped if a combo-key was pressed, or the buffer is empty if a non-combo-key is pressed. * Update docs/feature_combo.md Co-authored-by: precondition <57645186+precondition@users.noreply.github.com> * Update docs/feature_combo.md Co-authored-by: precondition <57645186+precondition@users.noreply.github.com> Co-authored-by: precondition <57645186+precondition@users.noreply.github.com> Co-authored-by: Drashna Jaelre <drashna@live.com>
* matrix_scan_x -> x_task (#13748)Joel Challis2021-07-281-1/+1
|
* format code according to conventions [skip ci]QMK Bot2020-08-291-2/+2
|
* Bigger combo index (#9318)Pete Sevander2020-08-291-3/+3
| | | | | * Add change log * Change combo index from uint8_t to uint16_t
* Run clang-format manually to fix recently changed files (#8552)Joel Challis2020-03-251-3/+3
|
* Variable combo (#8120)Jeremy Bernhardt2020-03-231-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | * keymap(gergo): colemak * added flipped numbers * add STENO_DISABLE_VIRTSER * add STENO_DISABLE_VIRTSER * Added GergoPlex and Faunchpad * push retab * push retab * added variable option for combos * removed accidental commit * removed accidental commit * More accidental deletions! (╯°□°)╯︵ ┻━┻ Co-authored-by: Damien Rajon <145502+pyrho@users.noreply.github.com>
* clang-format changesskullY2019-08-301-135/+124
|
* Allow Combo feature to be enabled/disabled live (#6318)Drashna Jaelre2019-07-161-1/+42
| | | | | | | | | | | | | | * Add ability to enable/disable combos * Update documentation for Combo feature * Change keycodes for appeasement * Simplify combo_toggle function * Update names * Update combo docs to use tables
* fix combo enabling logic (#5610)Bob2019-04-141-2/+2
|
* Switch process_combo to using global register and timer (#2561)Bob2019-04-081-108/+131
| | | | 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.
* Fix process_combo which assign -1 to uint16_tShihpin Tseng2018-08-201-9/+9
|
* Fixed various keymaps and the allocation of "key_combos" (#2526)Brian Choromanski2018-03-161-1/+1
| | | | | | | | | | | | | | | | | | | | * Fixed plank keymaps so that they will compile for planck light * tv44:budi now compiles * s60_x:amnesia0287 now compiles * Fixed allocation of key_combos so that narze keymap for planck can compile correctly * Disabled rgb on ergodone and infinity * Enabled tap dance so it compiles * Added return statement so it compiles * If compiling on light disable extra functionality * Properly redefined variable so it compiles
* Fix process_combo.c compile warningShihpin Tseng2017-10-291-1/+5
|
* Clarify the quantum license (#1042)skullydazed2017-03-281-0/+16
| | | | | | | | | | * Clarify the license for files we have signoff on * Update against the currently signed off files * Remove unused and not clearly licensed headers * Replace an #endif I accidentally removed while resolving merge conflicts
* Refactored as well as added support for action keys in combosOfer Plesser2016-12-161-53/+70
|
* Added support for timing out combos if a key as been pressed for longer than ↵Ofer Plesser2016-12-101-28/+79
| | | | COMBO_TERM
* Implemented basic key combination featureOfer Plesser2016-12-101-0/+66