qmk_firmware/quantum/process_keycode
Sergey Vlasov a7b2f4233c
Fix keycode parameter extraction to match the new DD keycodes (#18977)
* Add macros to extract parameters from keycode values

Implement both encoding and decoding for keycodes like TO(layer) or
LM(layer, mod) in one place, so that the decoding won't get out of sync
with the encoding.

While at it, fix some macros for creating keycode values that did not
apply the appropriate masks to parameters (and therefore could allow the
result to be out of range if a wrong parameter was passed).

* keymap_common: Use extraction macros for keycodes

* pointing_device_auto_mouse: Use extraction macros for keycodes

Fixes #18970.

* process_autocorrect: Use extraction macros for keycodes

* process_caps_word: Use extraction macros for keycodes

(Also fix a minor bug - SH_TG was not handled properly)

* process_leader: Use extraction macros for keycodes

(Technically the code is not 100% correct, because it always assumes
that the LT() or MT() action was a tap, but it's a separate issue that
already existed before the keycode changes.)

* process_unicode: Use extraction macros for keycodes

* process_unicodemap: Use extraction macros for keycodes
2022-11-06 21:39:05 +00:00
..
autocorrect_data_default.h [Core] Add getreuer's Autocorrect feature to core (#15699) 2022-09-17 17:50:54 +10:00
process_audio.c Align audio keycode names (#18962) 2022-11-05 17:05:19 +00:00
process_audio.h
process_auto_shift.c Normalise Auto Shift keycodes (#18892) 2022-10-28 13:53:15 +01:00
process_auto_shift.h Remove use of legacy keycode (#18281) 2022-09-06 05:25:32 +01:00
process_autocorrect.c Fix keycode parameter extraction to match the new DD keycodes (#18977) 2022-11-06 21:39:05 +00:00
process_autocorrect.h [Core] Add getreuer's Autocorrect feature to core (#15699) 2022-09-17 17:50:54 +10:00
process_backlight.c Reworked backlight keycodes. (#18961) 2022-11-06 08:11:59 +11:00
process_backlight.h
process_caps_word.c Fix keycode parameter extraction to match the new DD keycodes (#18977) 2022-11-06 21:39:05 +00:00
process_caps_word.h [Core] Add Caps Word feature to core (#16588) 2022-05-14 16:00:32 +10:00
process_clicky.c Align audio keycode names (#18962) 2022-11-05 17:05:19 +00:00
process_clicky.h
process_combo.c Normalise Combo keycodes (#18877) 2022-10-27 13:59:58 +01:00
process_combo.h
process_dynamic_macro.c Normalise Dynamic Macro keycodes (#18939) 2022-11-03 23:01:06 +00:00
process_dynamic_macro.h
process_dynamic_tapping_term.c Align dynamic tapping term keycode names (#18963) 2022-11-05 16:58:30 +00:00
process_dynamic_tapping_term.h
process_grave_esc.c
process_grave_esc.h
process_haptic.c
process_haptic.h
process_joystick.c Initial DD keycode migration (#18643) 2022-11-05 10:30:09 +00:00
process_joystick.h Further refactoring of joystick feature (#18437) 2022-09-27 18:37:13 +10:00
process_key_lock.c Deprecate `KC_LOCK` for `QK_LOCK` (#18796) 2022-10-21 15:46:10 +01:00
process_key_lock.h
process_key_override.c Deprecate `KEY_OVERRIDE_*` keycodes for `KO_*` (#18843) 2022-10-25 14:45:57 +01:00
process_key_override.h
process_leader.c Fix keycode parameter extraction to match the new DD keycodes (#18977) 2022-11-06 21:39:05 +00:00
process_leader.h
process_magic.c Initial DD keycode migration (#18643) 2022-11-05 10:30:09 +00:00
process_magic.h
process_midi.c
process_midi.h
process_music.c Align audio keycode names (#18962) 2022-11-05 17:05:19 +00:00
process_music.h
process_programmable_button.c Initial DD keycode migration (#18643) 2022-11-05 10:30:09 +00:00
process_programmable_button.h
process_rgb.c Allow for RGB actions to take place on Keydown instead of Keyup (#16886) 2022-07-02 22:49:49 +10:00
process_rgb.h
process_secure.c Deprecate `SECURE_*` keycodes for `QK_SECURE_*` (#18847) 2022-10-25 22:59:17 +01:00
process_secure.h Implement XAP 'secure' core requirements (#16843) 2022-04-16 11:13:05 -07:00
process_sequencer.c
process_sequencer.h
process_space_cadet.c Normalise Space Cadet keycodes (#18864) 2022-10-27 11:19:16 +01:00
process_space_cadet.h
process_steno.c Rename postprocess_steno_user → post_process_steno_user (#17823) 2022-07-28 21:51:01 -07:00
process_steno.h Refactor steno and add `STENO_PROTOCOL = [all|txbolt|geminipr]` (#17065) 2022-06-23 20:43:24 +02:00
process_tap_dance.c Fix layer switching from tap dances by redoing the keymap lookup (#17935) 2022-10-03 20:48:16 +11:00
process_tap_dance.h Fix layer switching from tap dances by redoing the keymap lookup (#17935) 2022-10-03 20:48:16 +11:00
process_ucis.c Refactor Unicode feature (#18333) 2022-09-12 08:49:04 -07:00
process_ucis.h Refactor Unicode feature (#18333) 2022-09-12 08:49:04 -07:00
process_unicode.c Fix keycode parameter extraction to match the new DD keycodes (#18977) 2022-11-06 21:39:05 +00:00
process_unicode.h Refactor Unicode feature (#18333) 2022-09-12 08:49:04 -07:00
process_unicode_common.c Normalise Unicode keycodes (#18898) 2022-10-31 21:15:12 +00:00
process_unicode_common.h Refactor Unicode feature (#18333) 2022-09-12 08:49:04 -07:00
process_unicodemap.c Fix keycode parameter extraction to match the new DD keycodes (#18977) 2022-11-06 21:39:05 +00:00
process_unicodemap.h Refactor Unicode feature (#18333) 2022-09-12 08:49:04 -07:00