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

Initial port configuration (needs cleanup)

This commit is contained in:
2022-05-08 01:50:21 -07:00
parent f8d9207aaa
commit 10d4bbf297
8 changed files with 334 additions and 91 deletions

View File

@@ -30,8 +30,11 @@ void CInputGenerator::Update(float dt, CArchitectureQueue& queue) {
if (i == 0) {
firstController = true;
}
m_lastInput = CFinalInput(i, dt, cont, xc_leftDiv, x10_rightDiv);
queue.Push(MakeMsg::CreateUserInput(EArchMsgTarget::Game, m_lastInput));
auto tmp = CFinalInput(i, dt, cont, xc_leftDiv, x10_rightDiv);
if (i == 0) {
m_lastInput = tmp;
}
queue.Push(MakeMsg::CreateUserInput(EArchMsgTarget::Game, tmp));
++availSlot;
}