From 6fbc8a0b8982afdb3d7c9e836537fe3d01ab6c81 Mon Sep 17 00:00:00 2001 From: briaguya <70942617+briaguya-ai@users.noreply.github.com> Date: Sun, 18 May 2025 04:10:37 -0400 Subject: [PATCH] allow all connected controllers to be used for menu nav --- soh/soh/SohGui/Menu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/soh/soh/SohGui/Menu.cpp b/soh/soh/SohGui/Menu.cpp index 87c362496..e3bcc6189 100644 --- a/soh/soh/SohGui/Menu.cpp +++ b/soh/soh/SohGui/Menu.cpp @@ -9,6 +9,7 @@ #include #include "variables.h" #include +#include "imgui_impl_sdl2.h" extern "C" { #include "z64.h" @@ -120,6 +121,7 @@ UIWidgets::Colors Menu::GetMenuThemeColor() { Menu::Menu(const std::string& cVar, const std::string& name, uint8_t searchSidebarIndex_, UIWidgets::Colors defaultThemeIndex_) : GuiWindow(cVar, name), searchSidebarIndex(searchSidebarIndex_), defaultThemeIndex(defaultThemeIndex_) { + ImGui_ImplSDL2_SetGamepadMode(ImGui_ImplSDL2_GamepadMode::ImGui_ImplSDL2_GamepadMode_AutoAll); } void Menu::InitElement() {