Skip to content

Commit

Permalink
gControlNav is enabled by default on switch
Browse files Browse the repository at this point in the history
  • Loading branch information
KiritoDv committed Aug 3, 2022
1 parent d47176b commit 2dce7e7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libultraship/libultraship/ImGuiImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,12 @@ namespace SohImGui {
GlobalCtx2::GetInstance()->GetWindow()->dwMenubar = menu_bar;
ShowCursor(menu_bar, Dialogues::dMenubar);
GlobalCtx2::GetInstance()->GetWindow()->GetControlDeck()->SaveControllerSettings();
if (CVar_GetS32("gControlNav", 0)) {
#ifdef __SWITCH__
bool enableControllerNavigation = true;
#else
bool enableControllerNavigation = CVar_GetS32("gControlNav", 0);
#endif
if (enableControllerNavigation) {
if (CVar_GetS32("gOpenMenuBar", 0)) {
io->ConfigFlags |=ImGuiConfigFlags_NavEnableGamepad | ImGuiConfigFlags_NavEnableKeyboard;
} else {
Expand Down

0 comments on commit 2dce7e7

Please sign in to comment.