From d2f68ba19ad9a49a7731d1531a19cdb7c616e107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20B=C3=BCchler?= Date: Tue, 21 May 2024 01:36:48 +0200 Subject: [PATCH] Fix PS/2 Trackpoint mouse clicks (#22265) (#23694) --- drivers/ps2/ps2_mouse.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/ps2/ps2_mouse.c b/drivers/ps2/ps2_mouse.c index 88c9bdcebef0..ef1a0e26f9e9 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