2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-16 15:37:01 +00:00

Start integrating new controller classes

This commit is contained in:
2022-03-20 17:30:47 -07:00
parent 22c9b55300
commit e3c8fa1d8f
14 changed files with 379 additions and 165 deletions

View File

@@ -117,12 +117,14 @@ void CInputGenerator::SetMotorState(EIOPort port, EMotorState state) {
}
const CFinalInput& CInputGenerator::getFinalInput(unsigned int idx, float dt) {
#if 0
auto input = CFinalInput(idx, dt, m_data, m_lastUpdate);
// Merge controller input with kb/m input
auto state = m_state[idx];
state.clamp();
input |= CFinalInput(idx, dt, state, m_lastUpdate, m_leftDiv, m_rightDiv);
m_lastUpdate = input;
#endif
return m_lastUpdate;
}