mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-18 09:21:43 +10:00
add a .clang-format file (#9154)
This commit is contained in:
+17
-18
@@ -3,27 +3,26 @@
|
||||
#include "InputBroker.h"
|
||||
#include "concurrency/OSThread.h"
|
||||
|
||||
class SerialKeyboard : public Observable<const InputEvent *>, public concurrency::OSThread
|
||||
{
|
||||
public:
|
||||
explicit SerialKeyboard(const char *name);
|
||||
class SerialKeyboard : public Observable<const InputEvent *>, public concurrency::OSThread {
|
||||
public:
|
||||
explicit SerialKeyboard(const char *name);
|
||||
|
||||
uint8_t getShift() const { return shift; }
|
||||
uint8_t getShift() const { return shift; }
|
||||
|
||||
protected:
|
||||
virtual int32_t runOnce() override;
|
||||
void erase();
|
||||
protected:
|
||||
virtual int32_t runOnce() override;
|
||||
void erase();
|
||||
|
||||
private:
|
||||
const char *_originName;
|
||||
bool firstTime = 1;
|
||||
int prevKeys = 0;
|
||||
int keys = 0;
|
||||
int shift = 0;
|
||||
int keyPressed = 13;
|
||||
int lastKeyPressed = 13;
|
||||
int quickPress = 0;
|
||||
unsigned long lastPressTime = 0;
|
||||
private:
|
||||
const char *_originName;
|
||||
bool firstTime = 1;
|
||||
int prevKeys = 0;
|
||||
int keys = 0;
|
||||
int shift = 0;
|
||||
int keyPressed = 13;
|
||||
int lastKeyPressed = 13;
|
||||
int quickPress = 0;
|
||||
unsigned long lastPressTime = 0;
|
||||
};
|
||||
|
||||
extern SerialKeyboard *globalSerialKeyboard;
|
||||
Reference in New Issue
Block a user