123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #pragma once
- #include <stdbool.h>
- #include <stdint.h>
- #ifndef WPM_ESTIMATED_WORD_SIZE
- # define WPM_ESTIMATED_WORD_SIZE 5
- #endif
- #ifndef WPM_SAMPLE_SECONDS
- # define WPM_SAMPLE_SECONDS 5
- #endif
- #ifndef WPM_SAMPLE_PERIODS
- # define WPM_SAMPLE_PERIODS 25
- #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);
- void decay_wpm(void);
|