summaryrefslogtreecommitdiff
path: root/keyboards/phage_studio/pila87/keymaps/default/keymap.c
diff options
context:
space:
mode:
authorHorrorTroll <sonicvipduc@gmail.com>2023-04-03 05:24:04 +0700
committerGitHub <noreply@github.com>2023-04-03 08:24:04 +1000
commitd3008110096db2ac098db9b5cb47ad77582c01d9 (patch)
treef31fa3ba7481f3621faec10e87ab4eef2fdf9e50 /keyboards/phage_studio/pila87/keymaps/default/keymap.c
parent27e6e27d3a2ff9d91bcf0f189cdc39509bef0335 (diff)
Add user horrortroll in userspace (#19769)
Diffstat (limited to 'keyboards/phage_studio/pila87/keymaps/default/keymap.c')
-rw-r--r--keyboards/phage_studio/pila87/keymaps/default/keymap.c26
1 files changed, 2 insertions, 24 deletions
diff --git a/keyboards/phage_studio/pila87/keymaps/default/keymap.c b/keyboards/phage_studio/pila87/keymaps/default/keymap.c
index f2de085ca6..10f01dbae5 100644
--- a/keyboards/phage_studio/pila87/keymaps/default/keymap.c
+++ b/keyboards/phage_studio/pila87/keymaps/default/keymap.c
@@ -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;
-}