aboutsummaryrefslogtreecommitdiff
path: root/quantum/wpm.h
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/wpm.h')
-rw-r--r--quantum/wpm.h12
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
22bool wpm_keycode(uint16_t keycode); 30bool wpm_keycode(uint16_t keycode);
23bool wpm_keycode_kb(uint16_t keycode); 31bool wpm_keycode_kb(uint16_t keycode);
24bool wpm_keycode_user(uint16_t keycode); 32bool wpm_keycode_user(uint16_t keycode);
25 33
34#ifdef WPM_ALLOW_COUNT_REGRESSION
35uint8_t wpm_regress_count(uint16_t keycode);
36#endif
37
26void set_current_wpm(uint8_t); 38void set_current_wpm(uint8_t);
27uint8_t get_current_wpm(void); 39uint8_t get_current_wpm(void);
28void update_wpm(uint16_t); 40void update_wpm(uint16_t);