From 008fc19a60204c0ad436723a35e1e2f00b12537c Mon Sep 17 00:00:00 2001 From: n-a-c-h <> Date: Tue, 3 Aug 2004 06:31:12 +0000 Subject: [PATCH] Prevented hitting of set keys if controller is set to none. --- zsnes/src/gui/guimouse.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/zsnes/src/gui/guimouse.inc b/zsnes/src/gui/guimouse.inc index e5d2cbed..aeeae260 100644 --- a/zsnes/src/gui/guimouse.inc +++ b/zsnes/src/gui/guimouse.inc @@ -582,7 +582,15 @@ ProcessMouseButtons: cmp byte[GUICBHold],20 je near SkipMovie cmp byte[GUICBHold],40 - je near SetAllKeys + jne .notClickedSetKeys + push ebx + mov ebx,[GUIcurrentinputcursloc] + mov bl,[GUIInputRefF+ebx] + cmp bl,0 + pop ebx + je .notClickedSetKeys + jmp near SetAllKeys +.notClickedSetKeys cmp byte[GUICBHold],50 jne .notstartcheat call CheatCodeSearchInit