mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-17 18:42:10 +00:00

* support BB Q10 keyboard * remove debug code * fix wrong logic * fix left/right keys for cardkb * Try to enable Q10 kb after all * cppcheck * Only fire on Key release and assume 0x0a is a enter as well --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com> Co-authored-by: Thomas Göttgens <tgoettgens@gmail.com>
17 lines
293 B
C++
17 lines
293 B
C++
#include "cardKbI2cImpl.h"
|
|
#include "InputBroker.h"
|
|
|
|
CardKbI2cImpl *cardKbI2cImpl;
|
|
|
|
CardKbI2cImpl::CardKbI2cImpl() : KbI2cBase("cardKB") {}
|
|
|
|
void CardKbI2cImpl::init()
|
|
{
|
|
if (cardkb_found.address == 0x00) {
|
|
disable();
|
|
return;
|
|
}
|
|
|
|
inputBroker->registerSource(this);
|
|
}
|