diff options
| author | Ryan <fauxpark@gmail.com> | 2024-05-07 18:36:50 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-07 18:36:50 +1000 |
| commit | 224ff1d262402a48d1d04912be10d22074d78ced (patch) | |
| tree | 1e62cfa7633462b50fba0f9b8c4be530a1cf3e50 /quantum/process_keycode | |
| parent | 18735599b4acfc70195ed441c98c1d78833564cb (diff) | |
Normalise RGBLight (underglow) keycodes (#23656)
Diffstat (limited to 'quantum/process_keycode')
| -rw-r--r-- | quantum/process_keycode/process_rgb.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/quantum/process_keycode/process_rgb.c b/quantum/process_keycode/process_rgb.c index 4e63bf3ca8..b113d1c1e7 100644 --- a/quantum/process_keycode/process_rgb.c +++ b/quantum/process_keycode/process_rgb.c | |||
| @@ -69,7 +69,7 @@ bool process_rgb(const uint16_t keycode, const keyrecord_t *record) { | |||
| 69 | uint8_t shifted = get_mods() & MOD_MASK_SHIFT; | 69 | uint8_t shifted = get_mods() & MOD_MASK_SHIFT; |
| 70 | #endif | 70 | #endif |
| 71 | switch (keycode) { | 71 | switch (keycode) { |
| 72 | case RGB_TOG: | 72 | case QK_UNDERGLOW_TOGGLE: |
| 73 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) | 73 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) |
| 74 | rgblight_toggle(); | 74 | rgblight_toggle(); |
| 75 | #endif | 75 | #endif |
| @@ -77,7 +77,7 @@ bool process_rgb(const uint16_t keycode, const keyrecord_t *record) { | |||
| 77 | rgb_matrix_toggle(); | 77 | rgb_matrix_toggle(); |
| 78 | #endif | 78 | #endif |
| 79 | return false; | 79 | return false; |
| 80 | case RGB_MODE_FORWARD: | 80 | case QK_UNDERGLOW_MODE_NEXT: |
| 81 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) | 81 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) |
| 82 | handleKeycodeRGB(shifted, rgblight_step, rgblight_step_reverse); | 82 | handleKeycodeRGB(shifted, rgblight_step, rgblight_step_reverse); |
| 83 | #endif | 83 | #endif |
| @@ -85,7 +85,7 @@ bool process_rgb(const uint16_t keycode, const keyrecord_t *record) { | |||
| 85 | handleKeycodeRGB(shifted, rgb_matrix_step, rgb_matrix_step_reverse); | 85 | handleKeycodeRGB(shifted, rgb_matrix_step, rgb_matrix_step_reverse); |
| 86 | #endif | 86 | #endif |
| 87 | return false; | 87 | return false; |
| 88 | case RGB_MODE_REVERSE: | 88 | case QK_UNDERGLOW_MODE_PREVIOUS: |
| 89 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) | 89 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) |
| 90 | handleKeycodeRGB(shifted, rgblight_step_reverse, rgblight_step); | 90 | handleKeycodeRGB(shifted, rgblight_step_reverse, rgblight_step); |
| 91 | #endif | 91 | #endif |
| @@ -93,7 +93,7 @@ bool process_rgb(const uint16_t keycode, const keyrecord_t *record) { | |||
| 93 | handleKeycodeRGB(shifted, rgb_matrix_step_reverse, rgb_matrix_step); | 93 | handleKeycodeRGB(shifted, rgb_matrix_step_reverse, rgb_matrix_step); |
| 94 | #endif | 94 | #endif |
| 95 | return false; | 95 | return false; |
| 96 | case RGB_HUI: | 96 | case QK_UNDERGLOW_HUE_UP: |
| 97 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) | 97 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) |
| 98 | handleKeycodeRGB(shifted, rgblight_increase_hue, rgblight_decrease_hue); | 98 | handleKeycodeRGB(shifted, rgblight_increase_hue, rgblight_decrease_hue); |
| 99 | #endif | 99 | #endif |
| @@ -101,7 +101,7 @@ bool process_rgb(const uint16_t keycode, const keyrecord_t *record) { | |||
| 101 | handleKeycodeRGB(shifted, rgb_matrix_increase_hue, rgb_matrix_decrease_hue); | 101 | handleKeycodeRGB(shifted, rgb_matrix_increase_hue, rgb_matrix_decrease_hue); |
| 102 | #endif | 102 | #endif |
| 103 | return false; | 103 | return false; |
| 104 | case RGB_HUD: | 104 | case QK_UNDERGLOW_HUE_DOWN: |
| 105 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) | 105 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) |
| 106 | handleKeycodeRGB(shifted, rgblight_decrease_hue, rgblight_increase_hue); | 106 | handleKeycodeRGB(shifted, rgblight_decrease_hue, rgblight_increase_hue); |
| 107 | #endif | 107 | #endif |
| @@ -109,7 +109,7 @@ bool process_rgb(const uint16_t keycode, const keyrecord_t *record) { | |||
| 109 | handleKeycodeRGB(shifted, rgb_matrix_decrease_hue, rgb_matrix_increase_hue); | 109 | handleKeycodeRGB(shifted, rgb_matrix_decrease_hue, rgb_matrix_increase_hue); |
| 110 | #endif | 110 | #endif |
| 111 | return false; | 111 | return false; |
| 112 | case RGB_SAI: | 112 | case QK_UNDERGLOW_SATURATION_UP: |
| 113 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) | 113 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) |
| 114 | handleKeycodeRGB(shifted, rgblight_increase_sat, rgblight_decrease_sat); | 114 | handleKeycodeRGB(shifted, rgblight_increase_sat, rgblight_decrease_sat); |
| 115 | #endif | 115 | #endif |
| @@ -117,7 +117,7 @@ bool process_rgb(const uint16_t keycode, const keyrecord_t *record) { | |||
| 117 | handleKeycodeRGB(shifted, rgb_matrix_increase_sat, rgb_matrix_decrease_sat); | 117 | handleKeycodeRGB(shifted, rgb_matrix_increase_sat, rgb_matrix_decrease_sat); |
| 118 | #endif | 118 | #endif |
| 119 | return false; | 119 | return false; |
| 120 | case RGB_SAD: | 120 | case QK_UNDERGLOW_SATURATION_DOWN: |
| 121 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) | 121 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) |
| 122 | handleKeycodeRGB(shifted, rgblight_decrease_sat, rgblight_increase_sat); | 122 | handleKeycodeRGB(shifted, rgblight_decrease_sat, rgblight_increase_sat); |
| 123 | #endif | 123 | #endif |
| @@ -125,7 +125,7 @@ bool process_rgb(const uint16_t keycode, const keyrecord_t *record) { | |||
| 125 | handleKeycodeRGB(shifted, rgb_matrix_decrease_sat, rgb_matrix_increase_sat); | 125 | handleKeycodeRGB(shifted, rgb_matrix_decrease_sat, rgb_matrix_increase_sat); |
| 126 | #endif | 126 | #endif |
| 127 | return false; | 127 | return false; |
| 128 | case RGB_VAI: | 128 | case QK_UNDERGLOW_VALUE_UP: |
| 129 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) | 129 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) |
| 130 | handleKeycodeRGB(shifted, rgblight_increase_val, rgblight_decrease_val); | 130 | handleKeycodeRGB(shifted, rgblight_increase_val, rgblight_decrease_val); |
| 131 | #endif | 131 | #endif |
| @@ -133,7 +133,7 @@ bool process_rgb(const uint16_t keycode, const keyrecord_t *record) { | |||
| 133 | handleKeycodeRGB(shifted, rgb_matrix_increase_val, rgb_matrix_decrease_val); | 133 | handleKeycodeRGB(shifted, rgb_matrix_increase_val, rgb_matrix_decrease_val); |
| 134 | #endif | 134 | #endif |
| 135 | return false; | 135 | return false; |
| 136 | case RGB_VAD: | 136 | case QK_UNDERGLOW_VALUE_DOWN: |
| 137 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) | 137 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) |
| 138 | handleKeycodeRGB(shifted, rgblight_decrease_val, rgblight_increase_val); | 138 | handleKeycodeRGB(shifted, rgblight_decrease_val, rgblight_increase_val); |
| 139 | #endif | 139 | #endif |
| @@ -141,7 +141,7 @@ bool process_rgb(const uint16_t keycode, const keyrecord_t *record) { | |||
| 141 | handleKeycodeRGB(shifted, rgb_matrix_decrease_val, rgb_matrix_increase_val); | 141 | handleKeycodeRGB(shifted, rgb_matrix_decrease_val, rgb_matrix_increase_val); |
| 142 | #endif | 142 | #endif |
| 143 | return false; | 143 | return false; |
| 144 | case RGB_SPI: | 144 | case QK_UNDERGLOW_SPEED_UP: |
| 145 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) | 145 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) |
| 146 | handleKeycodeRGB(shifted, rgblight_increase_speed, rgblight_decrease_speed); | 146 | handleKeycodeRGB(shifted, rgblight_increase_speed, rgblight_decrease_speed); |
| 147 | #endif | 147 | #endif |
| @@ -149,7 +149,7 @@ bool process_rgb(const uint16_t keycode, const keyrecord_t *record) { | |||
| 149 | handleKeycodeRGB(shifted, rgb_matrix_increase_speed, rgb_matrix_decrease_speed); | 149 | handleKeycodeRGB(shifted, rgb_matrix_increase_speed, rgb_matrix_decrease_speed); |
| 150 | #endif | 150 | #endif |
| 151 | return false; | 151 | return false; |
| 152 | case RGB_SPD: | 152 | case QK_UNDERGLOW_SPEED_DOWN: |
| 153 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) | 153 | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) |
| 154 | handleKeycodeRGB(shifted, rgblight_decrease_speed, rgblight_increase_speed); | 154 | handleKeycodeRGB(shifted, rgblight_decrease_speed, rgblight_increase_speed); |
| 155 | #endif | 155 | #endif |
