1
0
Fork 0

Separate keycode handling for LED Matrix and Backlight (#23426)

This commit is contained in:
Ryan 2024-04-11 14:06:36 +10:00 committed by GitHub
parent 4acdddbf48
commit 25f608c1b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 54 additions and 31 deletions

View file

@ -16,7 +16,7 @@
#include "quantum.h"
#if defined(BACKLIGHT_ENABLE) || defined(LED_MATRIX_ENABLE)
#ifdef BACKLIGHT_ENABLE
# include "process_backlight.h"
#endif
@ -40,6 +40,10 @@
# include "process_leader.h"
#endif
#ifdef LED_MATRIX_ENABLE
# include "process_led_matrix.h"
#endif
#ifdef MAGIC_ENABLE
# include "process_magic.h"
#endif
@ -333,9 +337,12 @@ bool process_record_quantum(keyrecord_t *record) {
#ifdef AUDIO_ENABLE
process_audio(keycode, record) &&
#endif
#if defined(BACKLIGHT_ENABLE) || defined(LED_MATRIX_ENABLE)
#if defined(BACKLIGHT_ENABLE)
process_backlight(keycode, record) &&
#endif
#if defined(LED_MATRIX_ENABLE)
process_led_matrix(keycode, record) &&
#endif
#ifdef STENO_ENABLE
process_steno(keycode, record) &&
#endif