FSUI: Disable the nav window using context config options

This commit is contained in:
TheLastRar 2025-07-05 20:03:45 +01:00 committed by lightningterror
parent 6e3dca5a1a
commit e75ddb878a
1 changed files with 5 additions and 1 deletions

View File

@ -133,7 +133,7 @@ bool ImGuiManager::Initialize()
s_global_scale = std::max(0.5f, g_gs_device->GetWindowScale() * (GSConfig.OsdScale / 100.0f));
s_scale_changed = false;
ImGui::CreateContext();
ImGuiContext& g = *ImGui::CreateContext();
ImGuiIO& io = ImGui::GetIO();
io.IniFilename = nullptr;
@ -141,6 +141,10 @@ bool ImGuiManager::Initialize()
io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard | ImGuiConfigFlags_NavEnableGamepad;
io.KeyRepeatDelay = 0.5f;
g.ConfigNavWindowingKeyNext = ImGuiKey_None;
g.ConfigNavWindowingKeyPrev = ImGuiKey_None;
g.ConfigNavWindowingWithGamepad = false;
s_window_width = static_cast<float>(g_gs_device->GetWindowWidth());
s_window_height = static_cast<float>(g_gs_device->GetWindowHeight());
io.DisplayFramebufferScale = ImVec2(1, 1); // We already scale things ourselves, this would double-apply scaling