make astyle

pull/389/head
Jesse Vincent 8 years ago
parent 76d5f2387a
commit e23f014f1c
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -22,24 +22,24 @@
namespace KaleidoscopePlugins {
const Key *TopsyTurvy::topsyTurvyList = NULL;
uint8_t TopsyTurvy::topsyTurvyModState;
const Key *TopsyTurvy::topsyTurvyList = NULL;
uint8_t TopsyTurvy::topsyTurvyModState;
TopsyTurvy::TopsyTurvy (void) {
}
TopsyTurvy::TopsyTurvy (void) {
}
void
TopsyTurvy::begin (void) {
void
TopsyTurvy::begin (void) {
event_handler_hook_use (this->eventHandlerHook);
}
}
void
TopsyTurvy::configure (const Key list[]) {
void
TopsyTurvy::configure (const Key list[]) {
topsyTurvyList = (const Key *)list;
}
}
Key
TopsyTurvy::eventHandlerHook (Key mappedKey, byte row, byte col, uint8_t keyState) {
Key
TopsyTurvy::eventHandlerHook (Key mappedKey, byte row, byte col, uint8_t keyState) {
if (keyState & TOPSYTURVY)
return mappedKey;
@ -88,7 +88,7 @@ namespace KaleidoscopePlugins {
}
return Key_NoKey;
}
}
};

@ -21,7 +21,7 @@
#include <Kaleidoscope.h>
namespace KaleidoscopePlugins {
class TopsyTurvy: public KaleidoscopePlugin {
class TopsyTurvy: public KaleidoscopePlugin {
public:
TopsyTurvy (void);
@ -34,7 +34,7 @@ namespace KaleidoscopePlugins {
static uint8_t topsyTurvyModState;
static Key eventHandlerHook (Key mappedKey, byte row, byte col, uint8_t keyState);
};
};
};
extern KaleidoscopePlugins::TopsyTurvy TopsyTurvy;

Loading…
Cancel
Save