2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CINPUTGENERATOR
|
|
|
|
#define _CINPUTGENERATOR
|
2022-09-13 04:26:54 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
2022-10-01 06:19:09 +00:00
|
|
|
#include "rstl/single_ptr.hpp"
|
|
|
|
|
|
|
|
#include "Kyoto/Input/IController.hpp"
|
|
|
|
|
2022-09-13 04:26:54 +00:00
|
|
|
class COsContext;
|
2022-10-01 06:19:09 +00:00
|
|
|
class IController;
|
2022-09-13 04:26:54 +00:00
|
|
|
|
|
|
|
class CInputGenerator {
|
|
|
|
public:
|
|
|
|
CInputGenerator(COsContext*, f32, f32);
|
|
|
|
|
2022-10-01 06:19:09 +00:00
|
|
|
IController* GetController() const { return x4_controller.get(); }
|
|
|
|
|
2022-09-13 04:26:54 +00:00
|
|
|
private:
|
2022-10-01 06:19:09 +00:00
|
|
|
COsContext* x0_context;
|
|
|
|
rstl::single_ptr< IController > x4_controller;
|
|
|
|
bool x8_connectedControllers[4];
|
|
|
|
f32 xc_leftDiv;
|
|
|
|
f32 x10_rightDiv;
|
2022-09-13 04:26:54 +00:00
|
|
|
};
|
2022-10-01 06:19:09 +00:00
|
|
|
CHECK_SIZEOF(CInputGenerator, 0x14)
|
2022-09-13 04:26:54 +00:00
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CINPUTGENERATOR
|