2024-07-31 14:38:21 +02:00
|
|
|
#include "SerialKeyboardImpl.h"
|
2024-07-31 07:42:23 -05:00
|
|
|
#include "InputBroker.h"
|
|
|
|
|
#include "configuration.h"
|
2024-07-31 14:38:21 +02:00
|
|
|
|
|
|
|
|
#ifdef INPUTBROKER_SERIAL_TYPE
|
|
|
|
|
|
|
|
|
|
SerialKeyboardImpl *aSerialKeyboardImpl;
|
|
|
|
|
|
|
|
|
|
SerialKeyboardImpl::SerialKeyboardImpl() : SerialKeyboard("serialKB") {}
|
|
|
|
|
|
2026-01-03 21:19:24 +01:00
|
|
|
void SerialKeyboardImpl::init() {
|
|
|
|
|
if (!INPUTBROKER_SERIAL_TYPE) {
|
|
|
|
|
disable();
|
|
|
|
|
return;
|
|
|
|
|
}
|
2024-07-31 14:38:21 +02:00
|
|
|
|
2026-01-03 21:19:24 +01:00
|
|
|
inputBroker->registerSource(this);
|
2024-07-31 14:38:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif // INPUTBROKER_SERIAL_TYPE
|