Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Source/Core/DolphinLibretro/Input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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<bool>(Libretro::Options::sysconf::ALT_GC_PORTS_ON_WII);

std::vector<retro_input_descriptor> all_descs;

Expand Down
1 change: 1 addition & 0 deletions Source/Core/DolphinLibretro/Input.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ struct WiimoteUpdateFlags

void refresh_all_wiimote_flags(unsigned port, unsigned device);
void poll_microphone();
void UpdateInputDescriptors();

namespace Libretro
{
Expand Down
Loading