diff options
author | Michael Büchler <[email protected]> | 2024-05-21 01:36:48 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2024-05-21 00:36:48 +0100 |
commit | a850f7d69509a99ef46dd2790c2e55171db16e7a (patch) | |
tree | 8d0829fcb104dcecea9eb36fad3be08befaf5fd7 /drivers | |
parent | 8ad2e307323415ac0a0198daf79223b3ae90de97 (diff) | |
download | qmk_firmware-a850f7d69509a99ef46dd2790c2e55171db16e7a.tar.gz qmk_firmware-a850f7d69509a99ef46dd2790c2e55171db16e7a.zip |
Fix PS/2 Trackpoint mouse clicks (#22265) (#23694)
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ps2/ps2_mouse.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ps2/ps2_mouse.c b/drivers/ps2/ps2_mouse.c index 88c9bdcebe..ef1a0e26f9 100644 --- a/drivers/ps2/ps2_mouse.c +++ b/drivers/ps2/ps2_mouse.c @@ -88,6 +88,8 @@ void ps2_mouse_task(void) { # endif } else { if (debug_mouse) print("ps2_mouse: fail to get mouse packet\n"); + /* return here to avoid updating the mouse button state */ + return; } #else if (pbuf_has_data()) { @@ -99,6 +101,8 @@ void ps2_mouse_task(void) { # endif } else { if (debug_mouse) print("ps2_mouse: fail to get mouse packet\n"); + /* return here to avoid updating the mouse button state */ + return; } #endif |