YoggieEngine/BarinkEngine/Include/Input/InputManager.h

30 lines
462 B
C
Raw Permalink Normal View History

#pragma once
2022-06-19 18:01:31 +00:00
#include <list>
#include "Graphics/Window.h"
#include "EventSystem/EventEmitter.h"
2022-06-19 18:01:31 +00:00
#include "../Include/Input/GLFWInput.h"
#include "BarinkEngine.h"
namespace BarinkEngine {
2022-06-19 18:01:31 +00:00
class InputManager : public EventEmitter {
public:
InputManager();
void PollEvents();
2022-06-19 18:01:31 +00:00
void attach(BarinkWindow* window);
2022-06-19 18:01:31 +00:00
void detach(BarinkWindow* window);
2022-06-19 18:01:31 +00:00
void setupGLFWInput(GLFWwindow* window);
2022-06-10 19:06:45 +00:00
2022-06-19 18:01:31 +00:00
private:
2022-06-19 18:01:31 +00:00
std::list<BarinkWindow*> windows;
};
}