38 mEffect->SetActive(0);
39 mEffect->SetMotors(mEffect->GetController(), 0, 0);
Unit of work a Scheduler runs at a set time.
Definition command.h:13
Command that ends a MotorEffect once its duration has passed.
Definition forcefeedbackmgrmotoreffectoffcmd.h:11
OffCmd(MotorEffect *pEffect)
Construct the command of an effect.
Definition forcefeedbackmgrmotoreffectoffcmd.h:28
void Execute() override
Mark the effect as not running and stop the controller's motors.
Definition forcefeedbackmgrmotoreffectoffcmd.h:37
~OffCmd() override=default
Destroy the object.
MotorEffect(int nController, int nSmallMotor, int nBigMotor, int nDuration)
Construct an effect that is not running, with the command that ends it.