Skip to content

Commit

Permalink
Merge pull request #4761 from ronso0/scratch-on-first-touch
Browse files Browse the repository at this point in the history
Scratch on first wheel touch
  • Loading branch information
Swiftb0y committed May 18, 2022
2 parents 0f2274b + 4096272 commit d76f5f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/controllers/controllerengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ ControllerEngine::ControllerEngine(
m_dx[i] = 0.0;
m_scratchFilters[i] = new AlphaBetaFilter();
m_ramp[i] = false;
m_brakeActive[i] = false;
m_spinbackActive[i] = false;
m_softStartActive[i] = false;
}

initializeScriptEngine();
Expand Down Expand Up @@ -1292,8 +1295,7 @@ void ControllerEngine::scratchEnable(int deck, int intervalsPerRev, double rpm,
if (m_dx[deck] != 0) {
//qDebug() << "Already scratching deck" << deck << ". Overriding.";
int timerId = m_scratchTimers.key(deck);
killTimer(timerId);
m_scratchTimers.remove(timerId);
stopScratchTimer(timerId);
}

// Controller resolution in intervals per second at normal speed.
Expand Down

0 comments on commit d76f5f4

Please sign in to comment.