metaforce/Runtime/Input/CInputGenerator.hpp

32 lines
749 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2015-08-18 05:54:43 +00:00
#include <memory>
#include "Runtime/Input/IController.hpp"
#include "Runtime/Input/CFinalInput.hpp"
2021-04-10 08:42:06 +00:00
namespace metaforce {
struct COsContext {
bool GetOsKeyState(int key) { return false; }
};
2015-08-28 00:11:31 +00:00
class CArchitectureQueue;
2015-08-28 00:11:31 +00:00
class CInputGenerator {
// COsContext& x0_context;
std::unique_ptr<IController> x4_controller;
std::array<bool, 4> x8_connectedControllers{};
float xc_leftDiv;
float x10_rightDiv;
2015-08-28 00:11:31 +00:00
CFinalInput m_lastInput;
2015-08-29 01:30:47 +00:00
2018-12-08 05:30:43 +00:00
public:
CInputGenerator(/*COsContext& context, */ float leftDiv, float rightDiv);
2018-12-08 05:30:43 +00:00
void Update(float dt, CArchitectureQueue& queue);
2015-08-18 05:54:43 +00:00
IController* GetController() const { return x4_controller.get(); }
CFinalInput GetLastInput() const { return m_lastInput; }
};
} // namespace metaforce