2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2015-08-18 05:54:43 +00:00
|
|
|
|
2022-03-22 19:04:57 +00:00
|
|
|
#include <memory>
|
2019-09-22 21:52:05 +00:00
|
|
|
|
2022-03-22 19:04:57 +00:00
|
|
|
#include "Runtime/Input/IController.hpp"
|
2019-09-22 21:52:05 +00:00
|
|
|
#include "Runtime/Input/CFinalInput.hpp"
|
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2022-03-22 19:04:57 +00:00
|
|
|
struct COsContext {
|
|
|
|
bool GetOsKeyState(int key) { return false; }
|
|
|
|
};
|
2015-08-28 00:11:31 +00:00
|
|
|
|
2022-03-22 19:04:57 +00:00
|
|
|
class CArchitectureQueue;
|
2015-08-28 00:11:31 +00:00
|
|
|
|
2022-03-22 19:04:57 +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
|
|
|
|
2022-03-22 19:04:57 +00:00
|
|
|
CFinalInput m_lastInput;
|
2015-08-29 01:30:47 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
public:
|
2022-03-22 19:04:57 +00:00
|
|
|
CInputGenerator(/*COsContext& context, */ float leftDiv, float rightDiv);
|
2022-02-09 08:54:53 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
void Update(float dt, CArchitectureQueue& queue);
|
2015-08-18 05:54:43 +00:00
|
|
|
|
2022-03-22 19:04:57 +00:00
|
|
|
IController* GetController() const { return x4_controller.get(); }
|
|
|
|
CFinalInput GetLastInput() const { return m_lastInput; }
|
|
|
|
};
|
|
|
|
} // namespace metaforce
|