Iris updates

This commit is contained in:
Daniel Flanagan 2020-10-26 11:33:18 -05:00
parent 99cc1d9f4a
commit b59054d7b5
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -126,18 +126,24 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
bool process_record_user(uint16_t keycode, keyrecord_t *record) { bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) { switch (keycode) {
case GAMER: case GAMER:
rgblight_enable_noeeprom();
rgblight_sethsv_noeeprom(HSV_RED);
if (record->event.pressed) { if (record->event.pressed) {
set_single_persistent_default_layer(_GAMER); set_single_persistent_default_layer(_GAMER);
} }
return false; return false;
break; break;
case RETRO_GAMER: case RETRO_GAMER:
rgblight_enable_noeeprom();
rgblight_sethsv_noeeprom(HSV_YELLOW);
if (record->event.pressed) { if (record->event.pressed) {
set_single_persistent_default_layer(_RETRO_GAMER); set_single_persistent_default_layer(_RETRO_GAMER);
} }
return false; return false;
break; break;
case QWERTY: case QWERTY:
rgblight_enable_noeeprom();
rgblight_sethsv_noeeprom(HSV_BLUE);
if (record->event.pressed) { if (record->event.pressed) {
set_single_persistent_default_layer(_QWERTY); set_single_persistent_default_layer(_QWERTY);
} }