summaryrefslogtreecommitdiff
path: root/quantum/wpm.h
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-04-18 23:26:37 -0700
committerGitHub <noreply@github.com>2021-04-18 23:26:37 -0700
commit180a32ec59339cf07323412457ec771fba69ea61 (patch)
treea3f59e56d06926608499ccba11ea318d53add529 /quantum/wpm.h
parentf65a5d2fb5f0e48d0b0cf7a5198da32129fbb52e (diff)
Enhancement of WPM feature (#11727)
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 15ab4ffcd1..079401eb4d 100644
--- a/quantum/wpm.h
+++ b/quantum/wpm.h
@@ -19,10 +19,22 @@
#include "quantum.h"
+
+#ifndef WPM_ESTIMATED_WORD_SIZE
+# define WPM_ESTIMATED_WORD_SIZE 5
+#endif
+#ifndef WPM_SMOOTHING
+# define WPM_SMOOTHING 0.0487
+#endif
+
bool wpm_keycode(uint16_t keycode);
bool wpm_keycode_kb(uint16_t keycode);
bool wpm_keycode_user(uint16_t keycode);
+#ifdef WPM_ALLOW_COUNT_REGRESSION
+uint8_t wpm_regress_count(uint16_t keycode);
+#endif
+
void set_current_wpm(uint8_t);
uint8_t get_current_wpm(void);
void update_wpm(uint16_t);