make astyle

pull/389/head
Jesse Vincent 7 years ago
parent a49830338c
commit c069df3919
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -20,34 +20,34 @@
#include <Kaleidoscope-GhostInTheFirmware.h>
namespace KaleidoscopePlugins {
GhostInTheFirmware::GhostKey *GhostInTheFirmware::ghostKeys;
bool GhostInTheFirmware::isActive;
bool GhostInTheFirmware::isPressed;
uint16_t GhostInTheFirmware::currentPos;
uint32_t GhostInTheFirmware::startTime;
uint16_t GhostInTheFirmware::pressTimeOut;
uint16_t GhostInTheFirmware::delayTimeOut;
GhostInTheFirmware::GhostKey *GhostInTheFirmware::ghostKeys;
bool GhostInTheFirmware::isActive;
bool GhostInTheFirmware::isPressed;
uint16_t GhostInTheFirmware::currentPos;
uint32_t GhostInTheFirmware::startTime;
uint16_t GhostInTheFirmware::pressTimeOut;
uint16_t GhostInTheFirmware::delayTimeOut;
GhostInTheFirmware::GhostInTheFirmware (void) {
}
GhostInTheFirmware::GhostInTheFirmware (void) {
}
void
GhostInTheFirmware::begin (void) {
void
GhostInTheFirmware::begin (void) {
loop_hook_use (this->loopHook);
}
}
void
GhostInTheFirmware::activate (void) {
void
GhostInTheFirmware::activate (void) {
isActive = true;
}
}
void
GhostInTheFirmware::configure (const GhostKey ghostKeys_[]) {
void
GhostInTheFirmware::configure (const GhostKey ghostKeys_[]) {
ghostKeys = (GhostKey *)ghostKeys_;
}
}
void
GhostInTheFirmware::loopHook (bool postClear) {
void
GhostInTheFirmware::loopHook (bool postClear) {
if (postClear || !isActive)
return;
@ -81,7 +81,7 @@ namespace KaleidoscopePlugins {
pressTimeOut = 0;
}
}
}
}
};

@ -21,7 +21,7 @@
#include <Kaleidoscope.h>
namespace KaleidoscopePlugins {
class GhostInTheFirmware : public KaleidoscopePlugin {
class GhostInTheFirmware : public KaleidoscopePlugin {
public:
typedef struct {
byte row;
@ -46,7 +46,7 @@ namespace KaleidoscopePlugins {
static uint16_t delayTimeOut;
static void loopHook (bool postClear);
};
};
};

Loading…
Cancel
Save