mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-22 10:42:49 +00:00
Introduce InputBroker
This commit is contained in:
17
src/plugins/input/InputBroker.cpp
Normal file
17
src/plugins/input/InputBroker.cpp
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user