37 if (pController->GetEnabled() && !pController->IsPlayingEffect()) {
38 pController->GetBeatEffect()->Start();
Unit of work a Scheduler runs at a set time.
Definition command.h:13
Command that runs the beat pulse once a period.
Definition forcefeedbackmgrbeatcmd.h:14
~BeatCmd() override=default
Destroy the object.
void SetPeriod(int nPeriod)
Set the ticks between two pulses.
Definition forcefeedbackmgrbeatcmd.h:49
void Execute() override
Start the beat pulse of every enabled controller that plays no effect, and run again a period later.
Definition forcefeedbackmgrbeatcmd.h:35
BeatCmd()
Construct the command with no period.
Definition forcefeedbackmgrbeatcmd.h:25
ForceFeedbackMgr * TheForceFeedbackMgr
The vibration manager, ForceFeedbackMgr::shared() as the unit's static initialiser stored it.
Scheduler TheSongScheduler
The scheduler of the song clock.