Big keycode cleanup (#230)
* clean up quantum.c (#7485) * idea * progress * more stuff * wip * wip * last couple of keycodes you can move safely * Update quantum/quantum.c Co-Authored-By: fauxpark <fauxpark@gmail.com> * Put back RGB_MODE_BREATHE * Compile out some keycode processing when features are disabled (#7506) * Add shift-to-invert to remaining directional RGB_* keycode pairs (#7484) * Add shift-to-invert to remaining directional RGB_* keycode pairs RGB_MODE_FORWARD / RGB_MODE_REVERSE invert their functions when shift is held. This change adds the same capabilities to the remaining directional RGB_* keycode pairs. This improves consistency and provides full RGB control in a keymap containing only one keycode from each pair. * remove redundant variable * fix typo * Fix more typos Flyspell is on now I swear! * Relocate magic keycode processing (#7512) * Move magic keycode processing to own file * Save some bytes * Update comments * Update define to one thats not already used... * Fix audio * Fix breathing toggle when rgb is disabled (#7550) * Ifdef MAGIC_EE_HANDS until #178 drops revert this commit once it does * Add short aliases for Magic keycodes (#7541) * Add short alias for `MAGIC_TOGGLE_NKRO` * Add aliases for the other Bootmagic keycodes * Replace long form in default keymaps * Fix FORCE_NKRO handling (#7601) * Add until #173 drops * Relocate RGB keycode processing (#7508) * Move rgb keycode logic to process_keycode * Fixes for rgb matrix * Fixes for mxss * Fix inc/dec logic, add comments * Fix return RAINBOW_SWIRL logic * stop external use of rgb helper functions * merge fix * Fix 'defined but not used' when all animations are disabled Co-authored-by: Yan-Fa Li <yanfali@gmail.com> Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Manna Harbour <51143715+manna-harbour@users.noreply.github.com> Co-authored-by: fauxpark <fauxpark@gmail.com> Co-authored-by: Florian Didron <fdidron@users.noreply.github.com>
This commit is contained in:
committed by
Florian Didron
parent
1a62f5c142
commit
493c675778
@@ -657,13 +657,42 @@ enum quantum_keycodes {
|
||||
// L-ayer, T-ap - 256 keycode max, 16 layer max
|
||||
#define LT(layer, kc) (QK_LAYER_TAP | (((layer)&0xF) << 8) | ((kc)&0xFF))
|
||||
|
||||
#define CL_SWAP MAGIC_SWAP_CONTROL_CAPSLOCK
|
||||
#define CL_NORM MAGIC_UNSWAP_CONTROL_CAPSLOCK
|
||||
#define CL_CTRL MAGIC_CAPSLOCK_TO_CONTROL
|
||||
#define CL_CAPS MAGIC_UNCAPSLOCK_TO_CONTROL
|
||||
|
||||
#define LCG_SWP MAGIC_SWAP_LCTL_LGUI
|
||||
#define LCG_NRM MAGIC_UNSWAP_LCTL_LGUI
|
||||
#define RCG_SWP MAGIC_SWAP_RCTL_RGUI
|
||||
#define RCG_NRM MAGIC_UNSWAP_RCTL_RGUI
|
||||
#define CG_SWAP MAGIC_SWAP_CTL_GUI
|
||||
#define CG_NORM MAGIC_UNSWAP_CTL_GUI
|
||||
#define CG_TOGG MAGIC_TOGGLE_CTL_GUI
|
||||
|
||||
#define LAG_SWP MAGIC_SWAP_LALT_LGUI
|
||||
#define LAG_NRM MAGIC_UNSWAP_LALT_LGUI
|
||||
#define RAG_SWP MAGIC_SWAP_RALT_RGUI
|
||||
#define RAG_NRM MAGIC_UNSWAP_RALT_RGUI
|
||||
#define AG_SWAP MAGIC_SWAP_ALT_GUI
|
||||
#define AG_NORM MAGIC_UNSWAP_ALT_GUI
|
||||
#define AG_TOGG MAGIC_TOGGLE_ALT_GUI
|
||||
|
||||
#define CG_SWAP MAGIC_SWAP_CTL_GUI
|
||||
#define CG_NORM MAGIC_UNSWAP_CTL_GUI
|
||||
#define CG_TOGG MAGIC_TOGGLE_CTL_GUI
|
||||
#define GUI_OFF MAGIC_NO_GUI
|
||||
#define GUI_ON MAGIC_UNNO_GUI
|
||||
|
||||
#define GE_SWAP MAGIC_SWAP_GRAVE_ESC
|
||||
#define GE_NORM MAGIC_UNSWAP_GRAVE_ESC
|
||||
|
||||
#define BS_SWAP MAGIC_SWAP_BACKSLASH_BACKSPACE
|
||||
#define BS_NORM MAGIC_UNSWAP_BACKSLASH_BACKSPACE
|
||||
|
||||
#define NK_ON MAGIC_HOST_NKRO
|
||||
#define NK_OFF MAGIC_UNHOST_NKRO
|
||||
#define NK_TOGG MAGIC_TOGGLE_NKRO
|
||||
|
||||
#define EH_LEFT MAGIC_EE_HANDS_LEFT
|
||||
#define EH_RGHT MAGIC_EE_HANDS_RIGHT
|
||||
|
||||
// GOTO layer - 16 layers max
|
||||
// when:
|
||||
|
||||
Reference in New Issue
Block a user