YoggieEngine/BarinkEngine/Input/InputManager.cpp
Nigel Barink d019155d10 Working on basic rendering #4
* Added a basic material abstraction
* Started implementation of RenderTarget (such as render textures)
2022-06-04 18:26:58 +02:00

19 lines
399 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*>();
}