diff options
author | brickbots <[email protected]> | 2020-03-22 06:06:16 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2020-03-23 00:06:16 +1100 |
commit | bfb2f8e0a8f809374fdec102eb02c3bce46a14ee (patch) | |
tree | 2bab982f9b1cc9184b58ca9764d1ba09e133335c /quantum/quantum.c | |
parent | d8f3c28a3786e7888fe3157c173845107c3ccc95 (diff) | |
download | qmk_firmware-bfb2f8e0a8f809374fdec102eb02c3bce46a14ee.tar.gz qmk_firmware-bfb2f8e0a8f809374fdec102eb02c3bce46a14ee.zip |
Add Word Per Minute calculation feature (#8054)
* Add Word Per Minute calculation feature
* Fix copyright info
* Remove header from quantum.c, setup overloadable keycode inclusion for WPM, update docs
* Simplify logic for keycode filtering
* Adding link from summary to wpm_feature info
* Update docs/feature_wpm.md
Typo in function prototype example in docs
Co-Authored-By: James Young <[email protected]>
* Add WPM transport via i2c
Co-authored-by: James Young <[email protected]>
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r-- | quantum/quantum.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index 749a08eea9..49767819df 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -192,6 +192,12 @@ bool process_record_quantum(keyrecord_t *record) { } #endif +#ifdef WPM_ENABLE + if (record->event.pressed) { + update_wpm(keycode); + } +#endif + #ifdef TAP_DANCE_ENABLE preprocess_tap_dance(keycode, record); #endif @@ -645,6 +651,10 @@ void matrix_scan_quantum() { encoder_read(); #endif +#ifdef WPM_ENABLE + decay_wpm(); +#endif + #ifdef HAPTIC_ENABLE haptic_task(); #endif |