diff options
Diffstat (limited to 'quantum/quantum.c')
| -rw-r--r-- | quantum/quantum.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index cb4d5ee80..46d404029 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c | |||
| @@ -47,6 +47,10 @@ extern backlight_config_t backlight_config; | |||
| 47 | #include "process_midi.h" | 47 | #include "process_midi.h" |
| 48 | #endif | 48 | #endif |
| 49 | 49 | ||
| 50 | #ifdef VELOCIKEY_ENABLE | ||
| 51 | #include "velocikey.h" | ||
| 52 | #endif | ||
| 53 | |||
| 50 | #ifdef HAPTIC_ENABLE | 54 | #ifdef HAPTIC_ENABLE |
| 51 | #include "haptic.h" | 55 | #include "haptic.h" |
| 52 | #endif | 56 | #endif |
| @@ -251,6 +255,10 @@ bool process_record_quantum(keyrecord_t *record) { | |||
| 251 | // return false; | 255 | // return false; |
| 252 | // } | 256 | // } |
| 253 | 257 | ||
| 258 | #ifdef VELOCIKEY_ENABLE | ||
| 259 | if (velocikey_enabled() && record->event.pressed) { velocikey_accelerate(); } | ||
| 260 | #endif | ||
| 261 | |||
| 254 | #ifdef TAP_DANCE_ENABLE | 262 | #ifdef TAP_DANCE_ENABLE |
| 255 | preprocess_tap_dance(keycode, record); | 263 | preprocess_tap_dance(keycode, record); |
| 256 | #endif | 264 | #endif |
| @@ -568,7 +576,14 @@ bool process_record_quantum(keyrecord_t *record) { | |||
| 568 | #endif | 576 | #endif |
| 569 | return false; | 577 | return false; |
| 570 | #endif // defined(RGBLIGHT_ENABLE) || defined(RGB_MATRIX_ENABLE) | 578 | #endif // defined(RGBLIGHT_ENABLE) || defined(RGB_MATRIX_ENABLE) |
| 571 | #ifdef PROTOCOL_LUFA | 579 | #ifdef VELOCIKEY_ENABLE |
| 580 | case VLK_TOG: | ||
| 581 | if (record->event.pressed) { | ||
| 582 | velocikey_toggle(); | ||
| 583 | } | ||
| 584 | return false; | ||
| 585 | #endif | ||
| 586 | #ifdef PROTOCOL_LUFA | ||
| 572 | case OUT_AUTO: | 587 | case OUT_AUTO: |
| 573 | if (record->event.pressed) { | 588 | if (record->event.pressed) { |
| 574 | set_output(OUTPUT_AUTO); | 589 | set_output(OUTPUT_AUTO); |
