summaryrefslogtreecommitdiff
path: root/quantum/keycode_config.c
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2019-08-22 00:22:32 -0700
committerFlorian Didron <fdidron@users.noreply.github.com>2019-09-05 16:15:42 +0900
commite85eeeaa538cb21441eb758605b449afb10375b8 (patch)
tree853202d2c8b029499b746a52945f55f5a14fd9e9 /quantum/keycode_config.c
parent9702d6d82e1d003c46f7f8e5c89e89d7a38dd6f8 (diff)
Fixup Bootmagic code (#6386)
Diffstat (limited to 'quantum/keycode_config.c')
-rw-r--r--quantum/keycode_config.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/quantum/keycode_config.c b/quantum/keycode_config.c
index 73fe15861d..bfd40d045c 100644
--- a/quantum/keycode_config.c
+++ b/quantum/keycode_config.c
@@ -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) {