Restrict mouse timer activation to movement keycodes (#25716)

Co-authored-by: フィルターペーパー <76888457+filterpaper@users.noreply.github.com>
This commit is contained in:
Aleks 2025-10-27 05:11:57 +01:00 committed by GitHub
parent dadbec4d46
commit cbd55b7890
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -386,7 +386,8 @@ void mousekey_task(void) {
void mousekey_on(uint8_t code) {
# ifdef MK_KINETIC_SPEED
if (mouse_timer == 0) {
// Start kinetic timer when movement keycodes are pressed
if (mouse_timer == 0 && (IS_MOUSEKEY_MOVE(code) || IS_MOUSEKEY_WHEEL(code))) {
mouse_timer = timer_read();
}
# endif