Restrict mouse timer activation to movement keycodes (#25716)
Co-authored-by: フィルターペーパー <76888457+filterpaper@users.noreply.github.com>
This commit is contained in:
parent
dadbec4d46
commit
cbd55b7890
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue