From 0512e286a6aabe8645ed980abec82790a1f881cd Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Wed, 22 Feb 2023 01:15:18 +0000 Subject: Remove magic bodges from via keymaps (#19890) --- keyboards/yandrstudio/wave75/wave75.c | 19 ------------------- keyboards/yandrstudio/wave75/wave75.h | 15 --------------- 2 files changed, 34 deletions(-) (limited to 'keyboards/yandrstudio/wave75') diff --git a/keyboards/yandrstudio/wave75/wave75.c b/keyboards/yandrstudio/wave75/wave75.c index 4e0d748c23..56ffa33ade 100644 --- a/keyboards/yandrstudio/wave75/wave75.c +++ b/keyboards/yandrstudio/wave75/wave75.c @@ -14,22 +14,3 @@ * along with this program. If not, see . */ #include "wave75.h" - -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/wave75/wave75.h b/keyboards/yandrstudio/wave75/wave75.h index 209a044466..e3b2f19f42 100644 --- a/keyboards/yandrstudio/wave75/wave75.h +++ b/keyboards/yandrstudio/wave75/wave75.h @@ -32,18 +32,3 @@ { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, KC_NO, K413, KC_NO }, \ { K500, K501, K502, KC_NO, KC_NO, KC_NO, K506, KC_NO, KC_NO, K509, K510, KC_NO, K512, K513, K514 } \ } - -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 -- cgit v1.2.3