Updated RGB Matrix keycodes

This commit is contained in:
Isaac Rex 2025-06-28 09:34:59 -05:00
parent c5aaf42db8
commit 810b1536c6
4 changed files with 20 additions and 20 deletions

View File

@ -21,11 +21,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
), ),
[LAYER_RGB] = LAYOUT_numpad_6x6( [LAYER_RGB] = LAYOUT_numpad_6x6(
_______, _______, _______, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, _______, RM_HUEU, RM_SATU, RM_VALU,
_______, _______, _______, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, RM_HUED, RM_SATD, RM_VALD,
_______, _______, _______, RGB_MOD, _______, RGB_SPI, _______, _______, _______, RM_NEXT, _______, RM_SPDU,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, RGB_SPD, _______, _______, _______, _______, _______, RM_SPDD,
_______, _______, _______, _______ _______, _______, _______, _______
) )
}; };

View File

@ -82,11 +82,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
), ),
[LAYER_RGB] = LAYOUT_numpad_6x6( [LAYER_RGB] = LAYOUT_numpad_6x6(
_______, _______, _______, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, _______, RM_HUEU, RM_SATU, RM_VALU,
_______, _______, _______, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, RM_HUED, RM_SATD, RM_VALD,
_______, _______, _______, RGB_DEF, RGB_IEF, RGB_SPI, _______, _______, _______, RM_DMOD, RM_IMOD, RM_SPDU,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, RGB_SPD, _______, _______, _______, _______, _______, RM_SPDD,
_______, _______, _______, _______ _______, _______, _______, _______
) )
}; };

View File

@ -114,7 +114,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) {
switch (keycode) { switch (keycode) {
#ifdef RGB_IDLE_ENABLE #ifdef RGB_IDLE_ENABLE
// Handle all the RGB settings // Handle all the RGB settings
case RGB_DEF: case RM_DMOD:
if (record->event.pressed) { if (record->event.pressed) {
// Change the RGB matrix state to active if editing idle // Change the RGB matrix state to active if editing idle
if (rgb_idle_edit_mode) { 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); rgb_matrix_state_save(&active_rgb_matrix);
} }
return false; return false;
case RGB_IEF: case RM_IMOD:
if (record->event.pressed) { if (record->event.pressed) {
// Change the RGB matrix state to idle // Change the RGB matrix state to idle
if (!rgb_idle_edit_mode) { if (!rgb_idle_edit_mode) {
@ -137,49 +137,49 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) {
} }
} }
return false; return false;
case RGB_SAI: case RM_SATU:
if (record->event.pressed) { if (record->event.pressed) {
rgb_matrix_increase_sat_noeeprom(); rgb_matrix_increase_sat_noeeprom();
rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix); rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix);
} }
return false; return false;
case RGB_SAD: case RM_SATD:
if (record->event.pressed) { if (record->event.pressed) {
rgb_matrix_decrease_sat_noeeprom(); rgb_matrix_decrease_sat_noeeprom();
rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix); rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix);
} }
return false; return false;
case RGB_VAI: case RM_VALU:
if (record->event.pressed) { if (record->event.pressed) {
rgb_matrix_increase_val_noeeprom(); rgb_matrix_increase_val_noeeprom();
rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix); rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix);
} }
return false; return false;
case RGB_VAD: case RM_VALD:
if (record->event.pressed) { if (record->event.pressed) {
rgb_matrix_decrease_val_noeeprom(); rgb_matrix_decrease_val_noeeprom();
rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix); rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix);
} }
return false; return false;
case RGB_HUI: case RM_HUEU:
if (record->event.pressed) { if (record->event.pressed) {
rgb_matrix_increase_hue_noeeprom(); rgb_matrix_increase_hue_noeeprom();
rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix); rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix);
} }
return false; return false;
case RGB_HUD: case RM_HUED:
if (record->event.pressed) { if (record->event.pressed) {
rgb_matrix_decrease_hue_noeeprom(); rgb_matrix_decrease_hue_noeeprom();
rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix); rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix);
} }
return false; return false;
case RGB_SPI: case RM_SPDU:
if (record->event.pressed) { if (record->event.pressed) {
rgb_matrix_increase_speed_noeeprom(); rgb_matrix_increase_speed_noeeprom();
rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix); rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix);
} }
return false; return false;
case RGB_SPD: case RM_SPDD:
if (record->event.pressed) { if (record->event.pressed) {
rgb_matrix_decrease_speed_noeeprom(); rgb_matrix_decrease_speed_noeeprom();
rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix); rgb_idle_edit_mode ? rgb_matrix_state_save(&idle_rgb_matrix) : rgb_matrix_state_save(&active_rgb_matrix);

View File

@ -19,8 +19,8 @@
#include "quantum.h" #include "quantum.h"
enum custom_keycodes { enum custom_keycodes {
RGB_DEF = QK_KB, RM_DMOD = QK_KB,
RGB_IEF RM_IMOD
}; };
#define LAYER_RGB (MAX_LAYER - 1) #define LAYER_RGB (MAX_LAYER - 1)