summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett Cox <garrettjcox@gmail.com>2022-09-25 11:14:46 -0500
committerGitHub <noreply@github.com>2022-09-25 12:14:46 -0400
commitda677682cd51b921f536a74ef38fb61027aaa52a (patch)
treefa0dbf893e9b22db5534839c932b7753bf86a9c2
parent11b6ce819d225ea28aa0c0612409e2b5eb75a1d7 (diff)
Don't disable keyboard when menuBar is shown and gControlNav is true (#1566)
-rw-r--r--libultraship/libultraship/ImGuiImpl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libultraship/libultraship/ImGuiImpl.cpp b/libultraship/libultraship/ImGuiImpl.cpp
index 4883f5a0e..2e421e1d4 100644
--- a/libultraship/libultraship/ImGuiImpl.cpp
+++ b/libultraship/libultraship/ImGuiImpl.cpp
@@ -363,7 +363,7 @@ namespace SohImGui {
}
if (CVar_GetS32("gControlNav", 0) && CVar_GetS32("gOpenMenuBar", 0)) {
- io->ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad | ImGuiConfigFlags_NavEnableKeyboard;
+ io->ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad;
} else {
io->ConfigFlags &= ~ImGuiConfigFlags_NavEnableGamepad;
}
@@ -466,7 +466,7 @@ namespace SohImGui {
ShowCursor(menu_bar, Dialogues::dMenubar);
Window::GetInstance()->GetControlDeck()->SaveControllerSettings();
if (CVar_GetS32("gControlNav", 0) && CVar_GetS32("gOpenMenuBar", 0)) {
- io->ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad | ImGuiConfigFlags_NavEnableKeyboard;
+ io->ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad;
} else {
io->ConfigFlags &= ~ImGuiConfigFlags_NavEnableGamepad;
}