diff options
author | Joel Challis <git@zvecr.com> | 2023-02-22 01:15:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-22 01:15:18 +0000 |
commit | 0512e286a6aabe8645ed980abec82790a1f881cd (patch) | |
tree | 50184f33e46c9fa2ee4e49cba1b05f44f623e4c2 /keyboards/yandrstudio/wave75 | |
parent | 26854f59402f3f4b7ca5cfe0f3dd665a680715f5 (diff) |
Remove magic bodges from via keymaps (#19890)
Diffstat (limited to 'keyboards/yandrstudio/wave75')
-rw-r--r-- | keyboards/yandrstudio/wave75/wave75.c | 19 | ||||
-rw-r--r-- | keyboards/yandrstudio/wave75/wave75.h | 15 |
2 files changed, 0 insertions, 34 deletions
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 <http://www.gnu.org/licenses/>. */ #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 |