mirror of
https://github.com/meshtastic/firmware.git
synced 2025-05-03 12:33:53 +00:00
20 lines
400 B
C++
20 lines
400 B
C++
#pragma once
|
|
|
|
#include "InputBroker.h"
|
|
#include "concurrency/OSThread.h"
|
|
|
|
class KbMatrixBase : public Observable<const InputEvent *>, public concurrency::OSThread
|
|
{
|
|
public:
|
|
explicit KbMatrixBase(const char *name);
|
|
|
|
protected:
|
|
virtual int32_t runOnce() override;
|
|
|
|
private:
|
|
const char *_originName;
|
|
bool firstTime = 1;
|
|
int shift = 0;
|
|
char key = 0;
|
|
char prevkey = 0;
|
|
}; |