Workaround to make mouse input work with the game being inside an ImGui window

Only works if the ctrl f10 debug menu is off
This commit is contained in:
kalaposfos13 2025-01-17 17:07:13 +01:00
parent 4ac5d171c9
commit 7e10d78341

View File

@ -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: