diff options
Diffstat (limited to 'quantum/quantum.c')
| -rw-r--r-- | quantum/quantum.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index d7dbc49dc..c857e5f7a 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c | |||
| @@ -120,13 +120,9 @@ __attribute__((weak)) bool process_record_kb(uint16_t keycode, keyrecord_t *reco | |||
| 120 | 120 | ||
| 121 | __attribute__((weak)) bool process_record_user(uint16_t keycode, keyrecord_t *record) { return true; } | 121 | __attribute__((weak)) bool process_record_user(uint16_t keycode, keyrecord_t *record) { return true; } |
| 122 | 122 | ||
| 123 | __attribute__ ((weak)) | 123 | __attribute__((weak)) void post_process_record_kb(uint16_t keycode, keyrecord_t *record) { post_process_record_user(keycode, record); } |
| 124 | void post_process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
| 125 | post_process_record_user(keycode, record); | ||
| 126 | } | ||
| 127 | 124 | ||
| 128 | __attribute__ ((weak)) | 125 | __attribute__((weak)) void post_process_record_user(uint16_t keycode, keyrecord_t *record) {} |
| 129 | void post_process_record_user(uint16_t keycode, keyrecord_t *record) {} | ||
| 130 | 126 | ||
| 131 | void reset_keyboard(void) { | 127 | void reset_keyboard(void) { |
| 132 | clear_keyboard(); | 128 | clear_keyboard(); |
| @@ -182,8 +178,8 @@ uint16_t get_event_keycode(keyevent_t event) { | |||
| 182 | 178 | ||
| 183 | /* Get keycode, and then call keyboard function */ | 179 | /* Get keycode, and then call keyboard function */ |
| 184 | void post_process_record_quantum(keyrecord_t *record) { | 180 | void post_process_record_quantum(keyrecord_t *record) { |
| 185 | uint16_t keycode = get_record_keycode(record); | 181 | uint16_t keycode = get_record_keycode(record); |
| 186 | post_process_record_kb(keycode, record); | 182 | post_process_record_kb(keycode, record); |
| 187 | } | 183 | } |
| 188 | 184 | ||
| 189 | /* Core keycode function, hands off handling to other functions, | 185 | /* Core keycode function, hands off handling to other functions, |
| @@ -208,7 +204,7 @@ bool process_record_quantum(keyrecord_t *record) { | |||
| 208 | 204 | ||
| 209 | #ifdef WPM_ENABLE | 205 | #ifdef WPM_ENABLE |
| 210 | if (record->event.pressed) { | 206 | if (record->event.pressed) { |
| 211 | update_wpm(keycode); | 207 | update_wpm(keycode); |
| 212 | } | 208 | } |
| 213 | #endif | 209 | #endif |
| 214 | 210 | ||
| @@ -666,7 +662,7 @@ void matrix_scan_quantum() { | |||
| 666 | #endif | 662 | #endif |
| 667 | 663 | ||
| 668 | #ifdef WPM_ENABLE | 664 | #ifdef WPM_ENABLE |
| 669 | decay_wpm(); | 665 | decay_wpm(); |
| 670 | #endif | 666 | #endif |
| 671 | 667 | ||
| 672 | #ifdef HAPTIC_ENABLE | 668 | #ifdef HAPTIC_ENABLE |
