Introduce InputBroker

This commit is contained in:
Balazs Kelemen
2022-01-11 16:02:55 +01:00
parent b832b82ec6
commit f5004a66a1
9 changed files with 68 additions and 16 deletions

View File

@@ -0,0 +1,17 @@
#include "InputBroker.h"
InputBroker *inputBroker;
InputBroker::InputBroker()
{
};
void InputBroker::registerOrigin(Observable<const InputEvent *> *origin)
{
this->inputEventObserver.observe(origin);
}
int InputBroker::handleInputEvent(const InputEvent *event)
{
this->notifyObservers(event);
}