From 6c30bded38c7e65b58a186590bf38b7ce9407c4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 5 Aug 2025 08:35:34 +0200 Subject: [PATCH] Fix the touch event filtering to not filter out touch events in the case of mouse control being enabled Problem reported by Haze, thanks! --- UI/EmuScreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/EmuScreen.cpp b/UI/EmuScreen.cpp index ed552b2804..0c5ccb8cce 100644 --- a/UI/EmuScreen.cpp +++ b/UI/EmuScreen.cpp @@ -1151,7 +1151,7 @@ void EmuScreen::touch(const TouchInput &touch) { if (!ImGui::GetIO().WantCaptureMouse) { UIScreen::touch(touch); } - } else if (g_Config.bMouseControl && !(touch.flags & TOUCH_UP)) { + } else if (g_Config.bMouseControl && !(touch.flags & TOUCH_UP) && (touch.flags & TOUCH_MOUSE)) { // don't do anything as the mouse pointer is hidden in this case. // But we let touch-up events through to avoid getting stuck if the user toggles mouse control. } else {