mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-22 10:42:49 +00:00
Relocate 'input' folder.
This commit is contained in:
18
src/input/InputBroker.cpp
Normal file
18
src/input/InputBroker.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "InputBroker.h"
|
||||
|
||||
InputBroker *inputBroker;
|
||||
|
||||
InputBroker::InputBroker()
|
||||
{
|
||||
};
|
||||
|
||||
void InputBroker::registerSource(Observable<const InputEvent *> *source)
|
||||
{
|
||||
this->inputEventObserver.observe(source);
|
||||
}
|
||||
|
||||
int InputBroker::handleInputEvent(const InputEvent *event)
|
||||
{
|
||||
this->notifyObservers(event);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user