From 87abb1c2c44fa0d051e7a109e66a9f99dcb1fa65 Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 12 Aug 2025 21:06:06 +0200 Subject: [PATCH] InPort Mouse: Fix button deltas in data interrupt mode, fixes #5942. --- src/device/mouse_bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/mouse_bus.c b/src/device/mouse_bus.c index c81bc6aba..dd71ef11e 100644 --- a/src/device/mouse_bus.c +++ b/src/device/mouse_bus.c @@ -508,7 +508,7 @@ bm_poll(void *priv) dev->mouse_buttons |= 0x40; /* Set bits 3-5 according to button state changes. */ - xor = ((dev->current_b ^ mouse_get_buttons_ex()) & 0x07) << 3; + xor = ((dev->current_b ^ dev->mouse_buttons) & 0x07) << 3; dev->mouse_buttons |= xor; }