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 | |
parent | 26854f59402f3f4b7ca5cfe0f3dd665a680715f5 (diff) |
Remove magic bodges from via keymaps (#19890)
Diffstat (limited to 'keyboards/yandrstudio')
-rw-r--r-- | keyboards/yandrstudio/buff67v3/buff67v3.c | 12 | ||||
-rw-r--r-- | keyboards/yandrstudio/buff67v3/buff67v3.h | 10 | ||||
-rw-r--r-- | keyboards/yandrstudio/nz64/nz64.c | 3 | ||||
-rw-r--r-- | keyboards/yandrstudio/nz64/nz64.h | 2 | ||||
-rw-r--r-- | keyboards/yandrstudio/nz67v2/nz67v2.c | 3 | ||||
-rw-r--r-- | keyboards/yandrstudio/nz67v2/nz67v2.h | 2 | ||||
-rw-r--r-- | keyboards/yandrstudio/wave75/wave75.c | 19 | ||||
-rw-r--r-- | keyboards/yandrstudio/wave75/wave75.h | 15 | ||||
-rw-r--r-- | keyboards/yandrstudio/yr6095/yr6095.c | 19 | ||||
-rw-r--r-- | keyboards/yandrstudio/yr6095/yr6095.h | 15 | ||||
-rw-r--r-- | keyboards/yandrstudio/yr80/yr80.c | 20 | ||||
-rw-r--r-- | keyboards/yandrstudio/yr80/yr80.h | 15 |
12 files changed, 0 insertions, 135 deletions
diff --git a/keyboards/yandrstudio/buff67v3/buff67v3.c b/keyboards/yandrstudio/buff67v3/buff67v3.c index 62a74c82bb..5ba95efbcc 100644 --- a/keyboards/yandrstudio/buff67v3/buff67v3.c +++ b/keyboards/yandrstudio/buff67v3/buff67v3.c @@ -41,18 +41,6 @@ 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 LOCK_GUI: - process_magic(GUI_TOG, record); - return false; - default: - break; - } - return true; -} - void board_init(void) { AFIO->MAPR |= AFIO_MAPR_TIM3_REMAP_PARTIALREMAP; } diff --git a/keyboards/yandrstudio/buff67v3/buff67v3.h b/keyboards/yandrstudio/buff67v3/buff67v3.h index dc6f334a58..64970d3863 100644 --- a/keyboards/yandrstudio/buff67v3/buff67v3.h +++ b/keyboards/yandrstudio/buff67v3/buff67v3.h @@ -30,13 +30,3 @@ { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, KC_NO, K312, K313, K314 }, \ { K400, K401, K402, KC_NO, KC_NO, K405, KC_NO, KC_NO, KC_NO, K409, K410, KC_NO, K412, K413, K414 } \ } - -enum keyboard_keycodes { -#ifdef VIA_ENABLE - LOCK_GUI = USER00, - NEW_SAFE_RANGE = SAFE_RANGE // Important! -#else - LOCK_GUI = SAFE_RANGE, - NEW_SAFE_RANGE // Important! -#endif -}; diff --git a/keyboards/yandrstudio/nz64/nz64.c b/keyboards/yandrstudio/nz64/nz64.c index f1777ccae3..b5a53273df 100644 --- a/keyboards/yandrstudio/nz64/nz64.c +++ b/keyboards/yandrstudio/nz64/nz64.c @@ -103,9 +103,6 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { eeconfig_update_kb(kb_cums.raw); return false; #endif - case LOCK_GUI: - process_magic(GUI_TOG, record); - return false; default: return true; } diff --git a/keyboards/yandrstudio/nz64/nz64.h b/keyboards/yandrstudio/nz64/nz64.h index fd28481d55..41b2a056c5 100644 --- a/keyboards/yandrstudio/nz64/nz64.h +++ b/keyboards/yandrstudio/nz64/nz64.h @@ -36,5 +36,3 @@ #else #define URGB_K KC_TRNS #endif - -#define LOCK_GUI KC_F23 diff --git a/keyboards/yandrstudio/nz67v2/nz67v2.c b/keyboards/yandrstudio/nz67v2/nz67v2.c index 64e287b868..346556c25e 100644 --- a/keyboards/yandrstudio/nz67v2/nz67v2.c +++ b/keyboards/yandrstudio/nz67v2/nz67v2.c @@ -108,9 +108,6 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { eeconfig_update_kb(kb_cums.raw); return false; #endif - case LOCK_GUI: - process_magic(GUI_TOG, record); - return false; default: break; } diff --git a/keyboards/yandrstudio/nz67v2/nz67v2.h b/keyboards/yandrstudio/nz67v2/nz67v2.h index af66280132..f538c624d9 100644 --- a/keyboards/yandrstudio/nz67v2/nz67v2.h +++ b/keyboards/yandrstudio/nz67v2/nz67v2.h @@ -85,5 +85,3 @@ #else # define URGB_K KC_TRNS #endif - -#define LOCK_GUI KC_F23 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 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 diff --git a/keyboards/yandrstudio/yr80/yr80.c b/keyboards/yandrstudio/yr80/yr80.c index 0228545e8c..2752dc9230 100644 --- a/keyboards/yandrstudio/yr80/yr80.c +++ b/keyboards/yandrstudio/yr80/yr80.c @@ -37,23 +37,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/yr80/yr80.h b/keyboards/yandrstudio/yr80/yr80.h index c5289696f8..79cbfca91b 100644 --- a/keyboards/yandrstudio/yr80/yr80.h +++ b/keyboards/yandrstudio/yr80/yr80.h @@ -33,18 +33,3 @@ { K400, KC_NO, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, KC_NO, KC_NO, KC_NO, K416 }, \ { K500, K501, K502, KC_NO, KC_NO, KC_NO, K506, K507, K508, K509, K510, KC_NO, KC_NO, KC_NO, K514, K515, K516 } \ } - -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 |