summaryrefslogtreecommitdiff
path: root/keyboards/yandrstudio/yr6095
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2023-02-22 01:15:18 +0000
committerGitHub <noreply@github.com>2023-02-22 01:15:18 +0000
commit0512e286a6aabe8645ed980abec82790a1f881cd (patch)
tree50184f33e46c9fa2ee4e49cba1b05f44f623e4c2 /keyboards/yandrstudio/yr6095
parent26854f59402f3f4b7ca5cfe0f3dd665a680715f5 (diff)
Remove magic bodges from via keymaps (#19890)
Diffstat (limited to 'keyboards/yandrstudio/yr6095')
-rw-r--r--keyboards/yandrstudio/yr6095/yr6095.c19
-rw-r--r--keyboards/yandrstudio/yr6095/yr6095.h15
2 files changed, 0 insertions, 34 deletions
diff --git a/keyboards/yandrstudio/yr6095/yr6095.c b/keyboards/yandrstudio/yr6095/yr6095.c
index 3ce43eb297..b4168279a7 100644
--- a/keyboards/yandrstudio/yr6095/yr6095.c
+++ b/keyboards/yandrstudio/yr6095/yr6095.c
@@ -43,22 +43,3 @@ void keyboard_post_init_kb(void) {
}
#endif
-
-bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
- if (!process_record_user(keycode, record)) { return false; }
- switch(keycode) {
- case KC_LG:
- if (record->event.pressed) {
- process_magic(GUI_TOG, record);
- }
- return false;
- case KC_MACOS:
- if (record->event.pressed) {
- process_magic(CG_TOGG, record);
- }
- return false;
- default:
- return true;
- }
- return true;
-}
diff --git a/keyboards/yandrstudio/yr6095/yr6095.h b/keyboards/yandrstudio/yr6095/yr6095.h
index f21ee93634..f09b65bdfa 100644
--- a/keyboards/yandrstudio/yr6095/yr6095.h
+++ b/keyboards/yandrstudio/yr6095/yr6095.h
@@ -57,18 +57,3 @@
{ K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \
{ K400, K401, K402, K403, K404, K405, KC_NO, K407, K408, K409, K410, K411, K412, K413 } \
}
-
-enum keyboard_keycodes {
-#ifdef VIA_ENABLE
- LOCK_GUI = USER00,
- TOG_MACOS_KEYMAP,
- NEW_SAFE_RANGE = SAFE_RANGE // Important!
-#else
- LOCK_GUI = SAFE_RANGE,
- TOG_MACOS_KEYMAP,
- NEW_SAFE_RANGE // Important!
-#endif
-};
-
-#define KC_LG LOCK_GUI
-#define KC_MACOS TOG_MACOS_KEYMAP