forked from mirrors/qmk_userspace
Fixup Bootmagic code (#6386)
This commit is contained in:
parent
8a2e328a33
commit
b5ee6c200c
2 changed files with 17 additions and 10 deletions
|
@ -18,6 +18,11 @@
|
|||
|
||||
extern keymap_config_t keymap_config;
|
||||
|
||||
/** \brief keycode_config
|
||||
*
|
||||
* This function is used to check a specific keycode against the bootmagic config,
|
||||
* and will return the corrected keycode, when appropriate.
|
||||
*/
|
||||
uint16_t keycode_config(uint16_t keycode) {
|
||||
|
||||
switch (keycode) {
|
||||
|
@ -109,6 +114,12 @@ uint16_t keycode_config(uint16_t keycode) {
|
|||
}
|
||||
}
|
||||
|
||||
/** \brief mod_config
|
||||
*
|
||||
* This function checks the mods passed to it against the bootmagic config,
|
||||
* and will remove or replace mods, based on that.
|
||||
*/
|
||||
|
||||
uint8_t mod_config(uint8_t mod) {
|
||||
if (keymap_config.swap_lalt_lgui) {
|
||||
if ((mod & MOD_RGUI) == MOD_LGUI) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue