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

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

Loading…
Cancel
Save