mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-12 08:02:04 +00:00
21 lines
420 B
C++
21 lines
420 B
C++
#include "SerialKeyboardImpl.h"
|
|
#include "InputBroker.h"
|
|
#include "configuration.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
|