mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-13 23:21:19 +10:00
I thought git would be smart enough to understand all the whitespace changes but even with all the flags I know to make it ignore theses it still blows up if there are identical changes on both sides.
I have a solution but it require creating a new commit at the merge base for each conflicting PR and merging it into develop.
I don't think blowing up all PRs is worth for now, maybe if we can coordinate this for V3 let's say.
This reverts commit 0d11331d18.
27 lines
703 B
C++
27 lines
703 B
C++
#include "TCA8418KeyboardBase.h"
|
|
|
|
class HackadayCommunicatorKeyboard : public TCA8418KeyboardBase
|
|
{
|
|
public:
|
|
HackadayCommunicatorKeyboard();
|
|
void reset(void);
|
|
void trigger(void) override;
|
|
virtual ~HackadayCommunicatorKeyboard() {}
|
|
|
|
protected:
|
|
void pressed(uint8_t key) override;
|
|
void released(void) override;
|
|
|
|
void updateModifierFlag(uint8_t key);
|
|
bool isModifierKey(uint8_t key);
|
|
|
|
private:
|
|
uint8_t modifierFlag; // Flag to indicate if a modifier key is pressed
|
|
uint32_t last_modifier_time; // Timestamp of the last modifier key press
|
|
int8_t last_key;
|
|
int8_t next_key;
|
|
uint32_t last_tap;
|
|
uint8_t char_idx;
|
|
int32_t tap_interval;
|
|
};
|