From 8dfb0330349cb1d47c0dbf83e626e4accde4895d Mon Sep 17 00:00:00 2001 From: Nik Henson Date: Mon, 12 Sep 2011 19:55:53 +0000 Subject: [PATCH] Changed drive board logic slightly for stopping vibrate effect as wasn't always cancelling the effect in Daytona 2 --- Src/Model3/DriveBoard.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Src/Model3/DriveBoard.cpp b/Src/Model3/DriveBoard.cpp index 3d90623..4342c5f 100644 --- a/Src/Model3/DriveBoard.cpp +++ b/Src/Model3/DriveBoard.cpp @@ -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