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

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

Loading…
Cancel
Save