Add user horrortroll in userspace (#19769)

This commit is contained in:
HorrorTroll
2023-04-03 05:24:04 +07:00
committed by GitHub
parent 27e6e27d3a
commit d300811009
37 changed files with 258 additions and 1280 deletions

View File

@@ -1,5 +1,5 @@
/* Copyright 2022 Phage Studio
* Copyright 2022 HorrorTroll <https://github.com/HorrorTroll>
/* Copyright 2023 Phage Studio
* Copyright 2023 HorrorTroll <https://github.com/HorrorTroll>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -151,25 +151,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
};
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case RGB_TOG:
if (record->event.pressed) {
switch (rgb_matrix_get_flags()) {
case LED_FLAG_ALL: {
rgb_matrix_set_flags(LED_FLAG_NONE);
rgb_matrix_set_color_all(0, 0, 0);
}
break;
default: {
rgb_matrix_set_flags(LED_FLAG_ALL);
rgb_matrix_enable_noeeprom();
}
break;
}
}
return false;
}
return true;
}