From 7e10d78341cd52ca0a6ff9e058f987f41264bcc6 Mon Sep 17 00:00:00 2001 From: kalaposfos13 <153381648+kalaposfos13@users.noreply.github.com> Date: Fri, 17 Jan 2025 17:07:13 +0100 Subject: [PATCH] Workaround to make mouse input work with the game being inside an ImGui window Only works if the ctrl f10 debug menu is off --- src/imgui/renderer/imgui_core.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/imgui/renderer/imgui_core.cpp b/src/imgui/renderer/imgui_core.cpp index f3e4609ba..46ef5058f 100644 --- a/src/imgui/renderer/imgui_core.cpp +++ b/src/imgui/renderer/imgui_core.cpp @@ -141,6 +141,9 @@ void Shutdown(const vk::Device& device) { bool ProcessEvent(SDL_Event* event) { Sdl::ProcessEvent(event); + if (!DebugState.IsShowingDebugMenuBar()) { + return false; // temp workaround, only works if the debug menu is inactive + } switch (event->type) { // Don't block release/up events case SDL_EVENT_MOUSE_MOTION: