diff options
| author | Aleks <8698469+aleksbrgt@users.noreply.github.com> | 2025-10-27 05:11:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-27 15:11:57 +1100 |
| commit | cbd55b7890b5679bb35dffabc5b4dd411b46f13e (patch) | |
| tree | 35360c1ffac72f2f0bef95fa7542a8ee21a44efb /quantum | |
| parent | dadbec4d46bea492c0021ae4d62eac37b3b5c4ed (diff) | |
Restrict mouse timer activation to movement keycodes (#25716)
Co-authored-by: フィルターペーパー <76888457+filterpaper@users.noreply.github.com>
Diffstat (limited to 'quantum')
| -rw-r--r-- | quantum/mousekey.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/quantum/mousekey.c b/quantum/mousekey.c index 9649943a0d..863c6baccc 100644 --- a/quantum/mousekey.c +++ b/quantum/mousekey.c | |||
| @@ -386,7 +386,8 @@ void mousekey_task(void) { | |||
| 386 | 386 | ||
| 387 | void mousekey_on(uint8_t code) { | 387 | void mousekey_on(uint8_t code) { |
| 388 | # ifdef MK_KINETIC_SPEED | 388 | # ifdef MK_KINETIC_SPEED |
| 389 | if (mouse_timer == 0) { | 389 | // Start kinetic timer when movement keycodes are pressed |
| 390 | if (mouse_timer == 0 && (IS_MOUSEKEY_MOVE(code) || IS_MOUSEKEY_WHEEL(code))) { | ||
| 390 | mouse_timer = timer_read(); | 391 | mouse_timer = timer_read(); |
| 391 | } | 392 | } |
| 392 | # endif | 393 | # endif |
