mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-17 22:25:37 +00:00
Qt: Fix controller rebinding not registering when paused
This commit is contained in:
parent
f9a298f1b7
commit
2004de7170
|
@ -264,6 +264,14 @@ void QtHostInterface::OnSystemPaused(bool paused)
|
||||||
|
|
||||||
emit emulationPaused(paused);
|
emit emulationPaused(paused);
|
||||||
|
|
||||||
|
if (m_background_controller_polling_enable_count > 0)
|
||||||
|
{
|
||||||
|
if (paused)
|
||||||
|
createBackgroundControllerPollTimer();
|
||||||
|
else
|
||||||
|
destroyBackgroundControllerPollTimer();
|
||||||
|
}
|
||||||
|
|
||||||
if (!paused)
|
if (!paused)
|
||||||
{
|
{
|
||||||
wakeThread();
|
wakeThread();
|
||||||
|
@ -562,7 +570,7 @@ void QtHostInterface::enableBackgroundControllerPolling()
|
||||||
if (m_background_controller_polling_enable_count++ > 0)
|
if (m_background_controller_polling_enable_count++ > 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!m_system)
|
if (!m_system || m_paused)
|
||||||
{
|
{
|
||||||
createBackgroundControllerPollTimer();
|
createBackgroundControllerPollTimer();
|
||||||
|
|
||||||
|
@ -583,7 +591,7 @@ void QtHostInterface::disableBackgroundControllerPolling()
|
||||||
if (--m_background_controller_polling_enable_count > 0)
|
if (--m_background_controller_polling_enable_count > 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!m_system)
|
if (!m_system || m_paused)
|
||||||
destroyBackgroundControllerPollTimer();
|
destroyBackgroundControllerPollTimer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue