From 30775231b9eb39e2b58ae2c8a93dc921bf527ac0 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sat, 13 Mar 2010 07:04:37 +0000 Subject: [PATCH] Bug 17: Don't allow joystick input while the menu or the virtual keyboard is active --- Src/Display.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Src/Display.cpp b/Src/Display.cpp index 8ef5be9..aed18e6 100644 --- a/Src/Display.cpp +++ b/Src/Display.cpp @@ -934,6 +934,10 @@ uint8 C64::poll_joystick(int port) if (!has_event) Gui::gui->pushJoystickEvent(EVENT_NONE); + /* No joystick input when the Gui is active */ + if (Gui::gui->is_active || Gui::gui->kbd) + return 0xff; + /* Handle keyboard codes */ for (int i = 0; i < 0x51; i++) {