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

Code cleanup and add NamedResourceCatalog

This commit is contained in:
2016-02-20 00:31:11 -08:00
parent 5229f95fb7
commit 8af98fb2f3
5 changed files with 154 additions and 14 deletions

View File

@@ -25,6 +25,13 @@ class CInputGenerator : public boo::DeviceFinder
float m_leftDiv;
float m_rightDiv;
CKeyboardMouseControllerData m_data;
CFinalInput m_lastUpdate;
const CFinalInput& getFinalInput(unsigned idx, float dt)
{
m_lastUpdate = CFinalInput(idx, dt, m_data, m_lastUpdate);
return m_lastUpdate;
}
public:
CInputGenerator(float leftDiv, float rightDiv)
: boo::DeviceFinder({typeid(boo::DolphinSmashAdapter)}),
@@ -90,13 +97,6 @@ public:
m_data.m_accumScroll.zeroOut();
}
CFinalInput m_lastUpdate;
const CFinalInput& getFinalInput(unsigned idx, float dt)
{
m_lastUpdate = CFinalInput(idx, dt, m_data, m_lastUpdate);
return m_lastUpdate;
}
/* Input via the smash adapter is received asynchronously on a USB
* report thread. This class atomically exchanges that data to the
* game thread as needed */