From dbfa865a4a988a923c0a508f7c8073b27f4a03ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 14 Feb 2025 12:20:39 -0600 Subject: [PATCH] ImGUI: Allow passthrough of mouse events clicking on the "desktop" --- UI/EmuScreen.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UI/EmuScreen.cpp b/UI/EmuScreen.cpp index 5b9163ed95..5ecadb4ee8 100644 --- a/UI/EmuScreen.cpp +++ b/UI/EmuScreen.cpp @@ -1080,6 +1080,9 @@ bool EmuScreen::key(const KeyInput &key) { void EmuScreen::touch(const TouchInput &touch) { if (g_Config.bShowImDebugger && imguiInited_) { ImGui_ImplPlatform_TouchEvent(touch); + if (!ImGui::GetIO().WantCaptureMouse) { + UIScreen::touch(touch); + } } else { UIScreen::touch(touch); }