diff --git a/Source/Core/DolphinLibretro/Input.cpp b/Source/Core/DolphinLibretro/Input.cpp index e0ee5edc0d4a..9b6360b60e71 100644 --- a/Source/Core/DolphinLibretro/Input.cpp +++ b/Source/Core/DolphinLibretro/Input.cpp @@ -798,6 +798,8 @@ void ResetControllers(const WiimoteUpdateFlags& f) for (int port = 0; port < port_max; port++) retro_set_controller_port_device(port, input_types[port]); + + UpdateInputDescriptors(); } void BluetoothPassthroughBind() @@ -1172,6 +1174,12 @@ void retro_set_controller_port_device(unsigned port, unsigned device) { retro_set_controller_port_device_wii(port, device); } +} + +void UpdateInputDescriptors() +{ + auto& system = Core::System::GetInstance(); + bool altGCPorts = Libretro::Options::GetCached(Libretro::Options::sysconf::ALT_GC_PORTS_ON_WII); std::vector all_descs; diff --git a/Source/Core/DolphinLibretro/Input.h b/Source/Core/DolphinLibretro/Input.h index 11695f2a43e2..fcebb3891b56 100644 --- a/Source/Core/DolphinLibretro/Input.h +++ b/Source/Core/DolphinLibretro/Input.h @@ -31,6 +31,7 @@ struct WiimoteUpdateFlags void refresh_all_wiimote_flags(unsigned port, unsigned device); void poll_microphone(); +void UpdateInputDescriptors(); namespace Libretro {