|
|
@ -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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|