mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-30 12:45:42 -04:00
Qt: Fix rumble not stopping on power off
This commit is contained in:
parent
6ecc1c684a
commit
2d6bdc1f82
@ -444,7 +444,7 @@ void QtHostInterface::OnSystemPaused(bool paused)
|
||||
|
||||
void QtHostInterface::OnSystemDestroyed()
|
||||
{
|
||||
HostInterface::OnSystemDestroyed();
|
||||
CommonHostInterface::OnSystemDestroyed();
|
||||
|
||||
startBackgroundControllerPollTimer();
|
||||
emit emulationStopped();
|
||||
|
@ -517,7 +517,7 @@ void CommonHostInterface::StopControllerRumble()
|
||||
{
|
||||
for (ControllerRumbleState& rumble : m_controller_vibration_motors)
|
||||
{
|
||||
bool changed = true;
|
||||
bool changed = false;
|
||||
for (u32 i = 0; i < rumble.num_motors; i++)
|
||||
{
|
||||
changed |= (rumble.last_strength[i] != 0.0f);
|
||||
|
Loading…
x
Reference in New Issue
Block a user