2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 23:07:42 +00:00

Implement rumble classes

This commit is contained in:
Jack Andersen
2018-01-25 23:48:42 -10:00
parent 132f2ab007
commit 13a31be23b
23 changed files with 458 additions and 97 deletions

View File

@@ -212,6 +212,27 @@ public:
}
}
}
void ControlAllMotors(const EMotorState* states)
{
if (smashAdapter)
{
for (int i=0 ; i<4 ; ++i)
{
switch (states[i])
{
case EMotorState::Stop:
smashAdapter->stopRumble(i);
break;
case EMotorState::Rumble:
smashAdapter->startRumble(i);
break;
case EMotorState::StopHard:
smashAdapter->stopRumble(i, true);
break;
}
}
}
}
/* This is where the game thread enters */
void Update(float dt, CArchitectureQueue& queue);