From eb463487301ccc7bcf95017488b8788f4625e8eb Mon Sep 17 00:00:00 2001 From: ry755 Date: Mon, 31 Jan 2022 23:38:53 -0800 Subject: [PATCH] fox32rom: Only clear the mouse click bit instead of the whole byte --- mouse.asm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mouse.asm b/mouse.asm index a5532da..aaae913 100644 --- a/mouse.asm +++ b/mouse.asm @@ -49,8 +49,9 @@ mouse_update: ; check click bit bts r3, 0 ifz jmp mouse_update_end - ; mouse was clicked - out r2, 0 ; clear all button state bits + ; mouse was clicked, clear the click bit + bcl r3, 0 + out r2, r3 ; check if the mouse was clicked in the menu bar ;mov r2, 30