mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
HostInterface: Fix controller not updating when switched and system running
This commit is contained in:
parent
46f921fb95
commit
12ddeb675c
|
@ -964,10 +964,19 @@ void HostInterface::UpdateSettings(const std::function<void()>& apply_callback)
|
||||||
m_system->GetCDROM()->SetUseReadThread(m_settings.cdrom_read_thread);
|
m_system->GetCDROM()->SetUseReadThread(m_settings.cdrom_read_thread);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool controllers_updated = false;
|
||||||
for (u32 i = 0; i < NUM_CONTROLLER_AND_CARD_PORTS; i++)
|
for (u32 i = 0; i < NUM_CONTROLLER_AND_CARD_PORTS; i++)
|
||||||
{
|
{
|
||||||
if (m_settings.controller_types[i] != old_controller_types[i])
|
if (m_settings.controller_types[i] != old_controller_types[i])
|
||||||
|
{
|
||||||
|
if (!controllers_updated)
|
||||||
|
{
|
||||||
|
m_system->UpdateControllers();
|
||||||
|
controllers_updated = true;
|
||||||
|
}
|
||||||
|
|
||||||
OnControllerTypeChanged(i);
|
OnControllerTypeChanged(i);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_display && m_settings.display_linear_filtering != old_display_linear_filtering)
|
if (m_display && m_settings.display_linear_filtering != old_display_linear_filtering)
|
||||||
|
|
Loading…
Reference in a new issue