mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-29 09:05:41 +00:00
Changed drive board logic slightly for stopping vibrate effect as wasn't always cancelling the effect in Daytona 2
This commit is contained in:
parent
e6f19c40ef
commit
8dfb033034
|
@ -602,14 +602,14 @@ void CDriveBoard::ProcessEncoderCmd(void)
|
|||
case 2: m_uncenterVal2 = data<<4; break;
|
||||
case 3: m_uncenterVal2 |= data; break;
|
||||
}
|
||||
if (seqNum == 3)
|
||||
if (seqNum == 0 && m_uncenterVal1 == 0)
|
||||
{
|
||||
if (m_uncenterVal1 == 0)
|
||||
{
|
||||
// Disable uncentering
|
||||
SendVibrate(0);
|
||||
}
|
||||
else
|
||||
// Disable uncentering
|
||||
SendVibrate(0);
|
||||
}
|
||||
else if (seqNum == 3)
|
||||
{
|
||||
if (m_uncenterVal1 > 0)
|
||||
{
|
||||
// Uncentering - unsure exactly how values sent map to strength or whether they specify some other attributes of effect
|
||||
// For now just attempting to map them to a sensible value in range 0x00-0xFF
|
||||
|
|
Loading…
Reference in a new issue