summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2023-07-09 10:07:34 +0000
committerQMK Bot <hello@qmk.fm>2023-07-09 10:07:34 +0000
commitde5f6539f87b084fb65f69d3ab951d40758f2197 (patch)
treed1bd2c046af30ca5fc5a46eb9a48cdbf433cae50
parent03ecd346849cb66809d7e502d88d11023897885c (diff)
parent06a36824ad7e964c41e10e49780dd220ae573a95 (diff)
Merge remote-tracking branch 'origin/master' into develop
-rw-r--r--docs/squeezing_avr.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/squeezing_avr.md b/docs/squeezing_avr.md
index ce9e43cdae..d5ced57382 100644
--- a/docs/squeezing_avr.md
+++ b/docs/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