Drive board uses the value 0xFF (not 0x00) on ports 42 and 45 to stop all effects when port 46 is set to 0xFF; fixes FFB effects continuing after game ends

This commit is contained in:
gm-matthew 2023-06-26 10:56:04 +01:00 committed by trzy
parent 84aa972ef2
commit 015e8e9212
2 changed files with 2 additions and 2 deletions

View file

@ -497,7 +497,7 @@ void CJoyBoard::ProcessEncoderCmdJoystick(void)
case 0xFF: case 0xFF:
// Stop all effects // Stop all effects
if (m_port42Out == 0 || m_port45Out == 0) if (m_port42Out == 0xFF && m_port45Out == 0xFF)
SendStopAll(); SendStopAll();
break; break;

View file

@ -591,7 +591,7 @@ void CWheelBoard::ProcessEncoderCmd(void)
case 0xFF: case 0xFF:
// Stop all effects // Stop all effects
if (m_port42Out == 0) if (m_port42Out == 0xFF)
SendStopAll(); SendStopAll();
break; break;