mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-22 18:52:30 +00:00
21 lines
420 B
C++
21 lines
420 B
C++
|
|
#include "configuration.h"
|
||
|
|
#include "InputBroker.h"
|
||
|
|
#include "SerialKeyboardImpl.h"
|
||
|
|
|
||
|
|
#ifdef INPUTBROKER_SERIAL_TYPE
|
||
|
|
|
||
|
|
SerialKeyboardImpl *aSerialKeyboardImpl;
|
||
|
|
|
||
|
|
SerialKeyboardImpl::SerialKeyboardImpl() : SerialKeyboard("serialKB") {}
|
||
|
|
|
||
|
|
void SerialKeyboardImpl::init()
|
||
|
|
{
|
||
|
|
if (!INPUTBROKER_SERIAL_TYPE) {
|
||
|
|
disable();
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
inputBroker->registerSource(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
#endif // INPUTBROKER_SERIAL_TYPE
|