Renderer refactoring. WIP InputSystem.

This commit is contained in:
2014-03-07 02:28:19 +01:00
parent e65db077d5
commit b1f0bc7cce
8 changed files with 39 additions and 59 deletions
+7 -8
View File
@@ -1,10 +1,8 @@
#ifndef InputSystem_h__
#define InputSystem_h__
#include <GLFW/glfw3.h>
#include "System.h"
#include "Renderer.h"
#include "Components/Input.h"
namespace Systems
@@ -13,13 +11,14 @@ namespace Systems
class InputSystem : public System
{
public:
InputSystem(World* world)
: System(world)
{
}
InputSystem(World* world, Renderer* renderer)
: System(world), m_Renderer(renderer) { }
void Update(double dt, EntityID entity, EntityID parent) override;
private:
Renderer* m_Renderer;
float m_LastMouseX, m_LastMouseY;
};
}