InPort Mouse: Fix button deltas in data interrupt mode, fixes #5942.

This commit is contained in:
OBattler
2025-08-12 21:06:06 +02:00
parent a4bdac000f
commit 87abb1c2c4

View File

@@ -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;
}