From 810b1536c63365283ee1e2490ef7acffae411436 Mon Sep 17 00:00:00 2001 From: Isaac Rex Date: Sat, 28 Jun 2025 09:34:59 -0500 Subject: [PATCH] Updated RGB Matrix keycodes --- .../nifty_numpad/keymaps/default/keymap.c | 8 ++++---- .../keymaps/idle_rgb_example/keymap.c | 8 ++++---- keyboards/nifty_numpad/nifty_numpad.c | 20 +++++++++---------- keyboards/nifty_numpad/nifty_numpad.h | 4 ++-- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/keyboards/nifty_numpad/keymaps/default/keymap.c b/keyboards/nifty_numpad/keymaps/default/keymap.c index 2818945ed3f..89f3350bcad 100644 --- a/keyboards/nifty_numpad/keymaps/default/keymap.c +++ b/keyboards/nifty_numpad/keymaps/default/keymap.c @@ -21,11 +21,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { ), [LAYER_RGB] = LAYOUT_numpad_6x6( - _______, _______, _______, RGB_HUI, RGB_SAI, RGB_VAI, - _______, _______, _______, RGB_HUD, RGB_SAD, RGB_VAD, - _______, _______, _______, RGB_MOD, _______, RGB_SPI, + _______, _______, _______, RM_HUEU, RM_SATU, RM_VALU, + _______, _______, _______, RM_HUED, RM_SATD, RM_VALD, + _______, _______, _______, RM_NEXT, _______, RM_SPDU, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, RGB_SPD, + _______, _______, _______, _______, _______, RM_SPDD, _______, _______, _______, _______ ) }; diff --git a/keyboards/nifty_numpad/keymaps/idle_rgb_example/keymap.c b/keyboards/nifty_numpad/keymaps/idle_rgb_example/keymap.c index b49a6f711ab..c3956848eb2 100644 --- a/keyboards/nifty_numpad/keymaps/idle_rgb_example/keymap.c +++ b/keyboards/nifty_numpad/keymaps/idle_rgb_example/keymap.c @@ -82,11 +82,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { ), [LAYER_RGB] = LAYOUT_numpad_6x6( - _______, _______, _______, RGB_HUI, RGB_SAI, RGB_VAI, - _______, _______, _______, RGB_HUD, RGB_SAD, RGB_VAD, - _______, _______, _______, RGB_DEF, RGB_IEF, RGB_SPI, + _______, _______, _______, RM_HUEU, RM_SATU, RM_VALU, + _______, _______, _______, RM_HUED, RM_SATD, RM_VALD, + _______, _______, _______, RM_DMOD, RM_IMOD, RM_SPDU, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, RGB_SPD, + _______, _______, _______, _______, _______, RM_SPDD, _______, _______, _______, _______ ) }; diff --git a/keyboards/nifty_numpad/nifty_numpad.c b/keyboards/nifty_numpad/nifty_numpad.c index d59518bfcb2..72328f33c13 100644 --- a/keyboards/nifty_numpad/nifty_numpad.c +++ b/keyboards/nifty_numpad/nifty_numpad.c @@ -114,7 +114,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) { switch (keycode) { #ifdef RGB_IDLE_ENABLE // Handle all the RGB settings - case RGB_DEF: + case RM_DMOD: if (record->event.pressed) { // Change the RGB matrix state to active if editing idle if (rgb_idle_edit_mode) { @@ -125,7 +125,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) { rgb_matrix_state_save(&active_rgb_matrix); } return false; - case RGB_IEF: + case RM_IMOD: if (record->event.pressed) { // Change the RGB matrix state to idle if (!rgb_idle_edit_mode) { @@ -137,49 +137,49 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) { } } return false; - case RGB_SAI: + case RM_SATU: if (record->event.pressed) { rgb_matrix_increase_sat_noeeprom(); rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix); } return false; - case RGB_SAD: + case RM_SATD: if (record->event.pressed) { rgb_matrix_decrease_sat_noeeprom(); rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix); } return false; - case RGB_VAI: + case RM_VALU: if (record->event.pressed) { rgb_matrix_increase_val_noeeprom(); rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix); } return false; - case RGB_VAD: + case RM_VALD: if (record->event.pressed) { rgb_matrix_decrease_val_noeeprom(); rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix); } return false; - case RGB_HUI: + case RM_HUEU: if (record->event.pressed) { rgb_matrix_increase_hue_noeeprom(); rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix); } return false; - case RGB_HUD: + case RM_HUED: if (record->event.pressed) { rgb_matrix_decrease_hue_noeeprom(); rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix); } return false; - case RGB_SPI: + case RM_SPDU: if (record->event.pressed) { rgb_matrix_increase_speed_noeeprom(); rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix); } return false; - case RGB_SPD: + case RM_SPDD: if (record->event.pressed) { rgb_matrix_decrease_speed_noeeprom(); rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix); diff --git a/keyboards/nifty_numpad/nifty_numpad.h b/keyboards/nifty_numpad/nifty_numpad.h index 6f210bc7050..0e4bf8f7e30 100644 --- a/keyboards/nifty_numpad/nifty_numpad.h +++ b/keyboards/nifty_numpad/nifty_numpad.h @@ -19,8 +19,8 @@ #include "quantum.h" enum custom_keycodes { - RGB_DEF = QK_KB, - RGB_IEF + RM_DMOD = QK_KB, + RM_IMOD }; #define LAYER_RGB (MAX_LAYER - 1)