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