diff options
author | QMK Bot <hello@qmk.fm> | 2021-08-10 09:15:00 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2021-08-10 09:15:00 +0000 |
commit | 5b8f2eccbfceea3cdc234de48d6a821ecd7bee24 (patch) | |
tree | 5249b27626352577e6cb75f665ff5aba1798296c /docs | |
parent | 75a58c3cef4a4b95f3c5e39d6d90723be10103b7 (diff) | |
parent | aeff347a074495f5aea77612bb083f79f7fcaf17 (diff) | |
download | qmk_firmware-5b8f2eccbfceea3cdc234de48d6a821ecd7bee24.tar.gz qmk_firmware-5b8f2eccbfceea3cdc234de48d6a821ecd7bee24.zip |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'docs')
-rw-r--r-- | docs/feature_wpm.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/feature_wpm.md b/docs/feature_wpm.md index c8ec3a7f32..e2fac1ecea 100644 --- a/docs/feature_wpm.md +++ b/docs/feature_wpm.md @@ -45,6 +45,7 @@ bool wpm_keycode_user(uint16_t keycode) { Additionally, if `WPM_ALLOW_COUNT_REGRESSION` is defined, there is the `uint8_t wpm_regress_count(uint16_t keycode)` function that allows you to decrease the WPM. This is useful if you want to be able to penalize certain keycodes (or even combinations). +```c __attribute__((weak)) uint8_t wpm_regress_count(uint16_t keycode) { bool weak_modded = (keycode >= QK_LCTL && keycode < QK_LSFT) || (keycode >= QK_RCTL && keycode < QK_RSFT); @@ -60,3 +61,4 @@ __attribute__((weak)) uint8_t wpm_regress_count(uint16_t keycode) { return 1; } } +``` |