forked from mirror/qmk_firmware
Restrict mouse timer activation to movement keycodes (#25716)
Co-authored-by: フィルターペーパー <76888457+filterpaper@users.noreply.github.com>
This commit is contained in:
@@ -386,7 +386,8 @@ void mousekey_task(void) {
|
|||||||
|
|
||||||
void mousekey_on(uint8_t code) {
|
void mousekey_on(uint8_t code) {
|
||||||
# ifdef MK_KINETIC_SPEED
|
# 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();
|
mouse_timer = timer_read();
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
|
|||||||
Reference in New Issue
Block a user