YoggieEngine/BarinkEngine/Input/InputManager.cpp
nigel 76c051e407 Made multiple managers for individual pieces
Added UIManager that renders the UI inside the window
2022-05-28 18:49:08 +02:00

20 lines
382 B
C++

#include "Input/InputManager.h"
void BarinkEngine::InputManager::PollEvents()
{
for (std::vector<BarinkWindow*>::iterator it = windows.begin(); it != windows.end(); ++it) {
(*it)->Poll();
}
}
void BarinkEngine::InputManager::attach(BarinkWindow* window)
{
windows.push_back(window);
}
BarinkEngine::InputManager::InputManager()
{
windows = std::vector<BarinkWindow*>();
}