diff options
Diffstat (limited to 'quantum/wpm.h')
| -rw-r--r-- | quantum/wpm.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/quantum/wpm.h b/quantum/wpm.h index 15ab4ffcd..4af52d2b9 100644 --- a/quantum/wpm.h +++ b/quantum/wpm.h | |||
| @@ -19,10 +19,21 @@ | |||
| 19 | 19 | ||
| 20 | #include "quantum.h" | 20 | #include "quantum.h" |
| 21 | 21 | ||
| 22 | #ifndef WPM_ESTIMATED_WORD_SIZE | ||
| 23 | # define WPM_ESTIMATED_WORD_SIZE 5 | ||
| 24 | #endif | ||
| 25 | #ifndef WPM_SMOOTHING | ||
| 26 | # define WPM_SMOOTHING 0.0487 | ||
| 27 | #endif | ||
| 28 | |||
| 22 | bool wpm_keycode(uint16_t keycode); | 29 | bool wpm_keycode(uint16_t keycode); |
| 23 | bool wpm_keycode_kb(uint16_t keycode); | 30 | bool wpm_keycode_kb(uint16_t keycode); |
| 24 | bool wpm_keycode_user(uint16_t keycode); | 31 | bool wpm_keycode_user(uint16_t keycode); |
| 25 | 32 | ||
| 33 | #ifdef WPM_ALLOW_COUNT_REGRESSION | ||
| 34 | uint8_t wpm_regress_count(uint16_t keycode); | ||
| 35 | #endif | ||
| 36 | |||
| 26 | void set_current_wpm(uint8_t); | 37 | void set_current_wpm(uint8_t); |
| 27 | uint8_t get_current_wpm(void); | 38 | uint8_t get_current_wpm(void); |
| 28 | void update_wpm(uint16_t); | 39 | void update_wpm(uint16_t); |
