aboutsummaryrefslogtreecommitdiff
path: root/keyboards/work_louder/rgb_functions.c
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2024-10-13 03:43:50 +1100
committerGitHub <noreply@github.com>2024-10-12 18:43:50 +0200
commit6fa11bf21913b5ccb531acc3c2baec963f4d384a (patch)
treeaaf6188a4579949cc1fbac61d0fee5234b97996a /keyboards/work_louder/rgb_functions.c
parent5c97a78ce6ab45643dcb420ba2ad20c30dcd5b8a (diff)
Separate RGBLight/RGB Matrix keycode handling (#23679)
* Separate RGBLight/RGB Matrix keycode handling * Remove `_DISABLE_KEYCODES` handling * Update RGB Matrix keycode docs * Update underglow keycodes for previously migrated boards * Update keycodes for boards with custom handling * Fix typos * Fix bad merge
Diffstat (limited to 'keyboards/work_louder/rgb_functions.c')
-rw-r--r--keyboards/work_louder/rgb_functions.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/keyboards/work_louder/rgb_functions.c b/keyboards/work_louder/rgb_functions.c
index fb99c0b008..15d0f432a0 100644
--- a/keyboards/work_louder/rgb_functions.c
+++ b/keyboards/work_louder/rgb_functions.c
@@ -14,10 +14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "rgb_functions.h"
-#include <stdint.h>
-#include "quantum.h"
-#include "action.h"
#include "rgblight.h"
#include "rgb_matrix.h"
@@ -39,44 +35,3 @@ const rgblight_driver_t rgblight_driver = {
.flush = ws2812_flush,
};
#endif
-
-#ifdef RGB_MATRIX_ENABLE
-bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
- if (!process_record_user(keycode, record)) { return false; }
-
- if (record->event.pressed) {
- switch(keycode) {
- case RGB_MATRIX_TOGGLE: // toggle rgb matrix
- rgb_matrix_toggle();
- return false;
- case RGB_MATRIX_MODE_INC:
- rgb_matrix_step();
- return false;
- case RGB_MATRIX_MODE_DEC:
- rgb_matrix_step_reverse();
- return false;
- case RGB_MATRIX_HUE_INC:
- rgb_matrix_increase_hue();
- return false;
- case RGB_MATRIX_HUE_DEC:
- rgb_matrix_decrease_hue();
- return false;
- case RGB_MATRIX_SAT_INC:
- rgb_matrix_increase_sat();
- return false;
- case RGB_MATRIX_SAT_DEC:
- rgb_matrix_decrease_sat();
- return false;
- case RGB_MATRIX_VAL_INC:
- rgb_matrix_increase_val();
- return false;
- case RGB_MATRIX_VAL_DEC:
- rgb_matrix_decrease_val();
- return false;
- default:
- break;
- }
- }
- return true;
-}
-#endif