25 lines
639 B
C++
25 lines
639 B
C++
#ifndef HYDRAPROCESSINPUTTASK
|
|
#define HYDRAPROCESSINPUTTASK
|
|
#include "../HydraTask.h"
|
|
#include "../../engine/HydraEngine.h"
|
|
#include "../../windowmanager/HydraWindowManager.h"
|
|
#include "../../engine/HydraInputManager.h"
|
|
|
|
class HydraProcessInputTask : public HydraTask
|
|
{
|
|
private:
|
|
bool m_reset;
|
|
protected:
|
|
public:
|
|
virtual void Process() override
|
|
{
|
|
GetEngine()->WindowManager()->HandleMessages();
|
|
GetEngine()->InputManager()->ProcessInput(m_reset);
|
|
}
|
|
void Initialise(bool reset)
|
|
{
|
|
m_reset = reset;
|
|
}
|
|
};
|
|
#endif /* HYDRAPROCESSINPUTTASK */
|