mirror of https://github.com/PCSX2/pcsx2.git
FSUI: Disable the nav window using context config options
This commit is contained in:
parent
6e3dca5a1a
commit
e75ddb878a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue