From e6d74560d6fe888dc8f356082ab1c2a5c02aa029 Mon Sep 17 00:00:00 2001 From: tzarc Date: Sun, 9 Jul 2023 10:07:34 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20qmk/qmk?= =?UTF-8?q?=5Ffirmware@06a36824ad7e964c41e10e49780dd220ae573a95=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- squeezing_avr.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/squeezing_avr.md b/squeezing_avr.md index ce9e43cdaea..d5ced573826 100644 --- a/squeezing_avr.md +++ b/squeezing_avr.md @@ -88,6 +88,21 @@ Or if you're not using layers at all, you can outright remove the functionality #define NO_ACTION_LAYER ``` +## Magic keycodes + +There are two `__attribute__ ((weak))` placeholder functions available to customize magic keycodes. If you are not using that feature to swap keycodes, such as backslash with backspace, add the following to your `keymap.c` or user space code: +```c +uint16_t keycode_config(uint16_t keycode) { + return keycode; +} +``` +Likewise, if you are not using magic keycodes to swap modifiers, such as Control with GUI, add the following to your `keymap.c` or user space code: +```c +uint8_t mod_config(uint8_t mod) { + return mod; +} +``` +Both of them will overwrite the placeholder functions with a simple return statement to reduce firmware size. ## OLED tweaks