mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 13:55:38 +00:00
Added stopping of all force feedback effects on reset (just in case some were playing at that point)
This commit is contained in:
parent
c10e839dc0
commit
ca8d838826
|
@ -238,6 +238,10 @@ void CDriveBoard::Reset(void)
|
|||
|
||||
if (!g_Config.forceFeedback)
|
||||
m_attached = false;
|
||||
|
||||
// Stop any effects that may still be playing
|
||||
if (m_attached)
|
||||
SendStopAll();
|
||||
}
|
||||
|
||||
UINT8 CDriveBoard::Read(void)
|
||||
|
@ -761,7 +765,7 @@ void CDriveBoard::SendVibrate(UINT8 val)
|
|||
m_lastVibrate = val;
|
||||
}
|
||||
|
||||
CDriveBoard::CDriveBoard() : m_attached(false), m_tmpDisabled(false), m_simulated(false),
|
||||
CDriveBoard::CDriveBoard() : m_attached(false), m_tmpDisabled(false), m_simulated(false),
|
||||
m_rom(NULL), m_ram(NULL), m_inputs(NULL), m_dip1(0xCF), m_dip2(0xFF)
|
||||
{
|
||||
DebugLog("Built Drive Board\n");
|
||||
|
|
Loading…
Reference in a new issue