ImGUI: Allow passthrough of mouse events clicking on the "desktop"

This commit is contained in:
Henrik Rydgård committed 2025-02-14 12:20:39 -06:00
1 parent 5ef2f06019
commit dbfa865a4a
1 file changed
+3
+3
View File
@@ -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);
}