diff options
author | Ryan <[email protected]> | 2025-01-11 02:04:17 +1100 |
---|---|---|
committer | GitHub <[email protected]> | 2025-01-11 02:04:17 +1100 |
commit | d90b6e4689ab7d74585774621adccc6faf021d38 (patch) | |
tree | 37d8397d4ef1780fffa0e97389e5808a72c6da87 | |
parent | 80c90a6952f412defa6b3709a59507b2c76f3863 (diff) | |
download | qmk_firmware-d90b6e4689ab7d74585774621adccc6faf021d38.tar.gz qmk_firmware-d90b6e4689ab7d74585774621adccc6faf021d38.zip |
Fix a build warning and tidy up a keymap (#24805)
-rw-r--r-- | keyboards/beekeeb/3w6hs/keyboard.json (renamed from keyboards/beekeeb/3w6hs/info.json) | 0 | ||||
-rw-r--r-- | keyboards/keyprez/bison/keymaps/default/keymap.c | 32 |
2 files changed, 3 insertions, 29 deletions
diff --git a/keyboards/beekeeb/3w6hs/info.json b/keyboards/beekeeb/3w6hs/keyboard.json index 74f1f1f245..74f1f1f245 100644 --- a/keyboards/beekeeb/3w6hs/info.json +++ b/keyboards/beekeeb/3w6hs/keyboard.json diff --git a/keyboards/keyprez/bison/keymaps/default/keymap.c b/keyboards/keyprez/bison/keymaps/default/keymap.c index d66b1a487b..17c5f2ecd7 100644 --- a/keyboards/keyprez/bison/keymaps/default/keymap.c +++ b/keyboards/keyprez/bison/keymaps/default/keymap.c @@ -25,11 +25,6 @@ enum layer_names { _FN, }; -enum custom_keycodes { - KC_PRVWD = SAFE_RANGE, - KC_NXTWD -}; - #define LOWER MO(_LOWER) #define RAISE MO(_RAISE) #define FN MO(_FN) @@ -47,6 +42,9 @@ enum custom_keycodes { #define KC_COLMK PDF(_COLEMAK) #define KC_HRM PDF(_HRM) +#define KC_PRVWD LCTL(KC_LEFT) +#define KC_NXTWD LCTL(KC_RGHT) + const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { /* * QWERTY @@ -186,27 +184,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { _______,_______, _______, _______, _______, _______, _______, _______ ), }; - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case KC_PRVWD: - if (record->event.pressed) { - register_mods(mod_config(MOD_LCTL)); - register_code(KC_LEFT); - } else { - unregister_mods(mod_config(MOD_LCTL)); - unregister_code(KC_LEFT); - } - break; - case KC_NXTWD: - if (record->event.pressed) { - register_mods(mod_config(MOD_LCTL)); - register_code(KC_RIGHT); - } else { - unregister_mods(mod_config(MOD_LCTL)); - unregister_code(KC_RIGHT); - } - break; - } - return true; -} |