YoggieEngine/BarinkEngine/Input/InputManager.cpp

20 lines
382 B
C++
Raw Normal View History

#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*>();
}