prime/include/MetroidPrime/CInputGenerator.hpp

30 lines
652 B
C++
Raw Normal View History

#ifndef _CINPUTGENERATOR
#define _CINPUTGENERATOR
#include "types.h"
2022-10-01 06:19:09 +00:00
#include "rstl/single_ptr.hpp"
#include "Kyoto/Input/IController.hpp"
class COsContext;
2022-10-01 06:19:09 +00:00
class IController;
2022-10-10 02:27:35 +00:00
class CArchitectureQueue;
class CInputGenerator {
public:
2022-10-10 02:27:35 +00:00
CInputGenerator(COsContext*, float leftDiv, float rightDiv);
bool Update(float dt, CArchitectureQueue& queue);
2022-10-01 06:19:09 +00:00
IController* GetController() const { return x4_controller.get(); }
private:
2022-10-01 06:19:09 +00:00
COsContext* x0_context;
rstl::single_ptr< IController > x4_controller;
bool x8_connectedControllers[4];
float xc_leftDiv;
float x10_rightDiv;
};
2022-10-01 06:19:09 +00:00
CHECK_SIZEOF(CInputGenerator, 0x14)
#endif // _CINPUTGENERATOR