summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2024-04-13 13:15:22 +1000
committerGitHub <noreply@github.com>2024-04-13 04:15:22 +0100
commitbbf63a84664282289a10ccf2b7bd4dadde3ed635 (patch)
treef34dea2871b9de7551f44d09182daef040692996 /quantum
parent6b60089fc704e4fc6bb75686b725a19da6a92fa9 (diff)
LED Matrix: replace backlight keycodes with newly added ones (#23455)
Diffstat (limited to 'quantum')
-rw-r--r--quantum/process_keycode/process_led_matrix.c29
1 files changed, 22 insertions, 7 deletions
diff --git a/quantum/process_keycode/process_led_matrix.c b/quantum/process_keycode/process_led_matrix.c
index 217c9a2c28..7f95bf1011 100644
--- a/quantum/process_keycode/process_led_matrix.c
+++ b/quantum/process_keycode/process_led_matrix.c
@@ -7,24 +7,39 @@
7bool process_led_matrix(uint16_t keycode, keyrecord_t *record) { 7bool process_led_matrix(uint16_t keycode, keyrecord_t *record) {
8 if (record->event.pressed) { 8 if (record->event.pressed) {
9 switch (keycode) { 9 switch (keycode) {
10 case QK_BACKLIGHT_ON: 10 case QK_BACKLIGHT_ON: // TODO: Remove backlight keycodes
11 case QK_LED_MATRIX_ON:
11 led_matrix_enable(); 12 led_matrix_enable();
12 return false; 13 return false;
13 case QK_BACKLIGHT_OFF: 14 case QK_BACKLIGHT_OFF:
15 case QK_LED_MATRIX_OFF:
14 led_matrix_disable(); 16 led_matrix_disable();
15 return false; 17 return false;
16 case QK_BACKLIGHT_DOWN:
17 led_matrix_decrease_val();
18 return false;
19 case QK_BACKLIGHT_UP:
20 led_matrix_increase_val();
21 return false;
22 case QK_BACKLIGHT_TOGGLE: 18 case QK_BACKLIGHT_TOGGLE:
19 case QK_LED_MATRIX_TOGGLE:
23 led_matrix_toggle(); 20 led_matrix_toggle();
24 return false; 21 return false;
25 case QK_BACKLIGHT_STEP: 22 case QK_BACKLIGHT_STEP:
23 case QK_LED_MATRIX_MODE_NEXT:
26 led_matrix_step(); 24 led_matrix_step();
27 return false; 25 return false;
26 case QK_LED_MATRIX_MODE_PREVIOUS:
27 led_matrix_step_reverse();
28 return false;
29 case QK_BACKLIGHT_UP:
30 case QK_LED_MATRIX_BRIGHTNESS_UP:
31 led_matrix_increase_val();
32 return false;
33 case QK_BACKLIGHT_DOWN:
34 case QK_LED_MATRIX_BRIGHTNESS_DOWN:
35 led_matrix_decrease_val();
36 return false;
37 case QK_LED_MATRIX_SPEED_UP:
38 led_matrix_increase_speed();
39 return false;
40 case QK_LED_MATRIX_SPEED_DOWN:
41 led_matrix_decrease_speed();
42 return false;
28 } 43 }
29 } 44 }
30 45