|
|
@ -25,7 +25,6 @@ namespace kaleidoscope {
|
|
|
|
cRGB ActiveModColorEffect::highlight_color = (cRGB) {
|
|
|
|
cRGB ActiveModColorEffect::highlight_color = (cRGB) {
|
|
|
|
0xff, 0xff, 0xff
|
|
|
|
0xff, 0xff, 0xff
|
|
|
|
};
|
|
|
|
};
|
|
|
|
bool ActiveModColorEffect::oneshot_only;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void ActiveModColorEffect::begin(void) {
|
|
|
|
void ActiveModColorEffect::begin(void) {
|
|
|
|
Kaleidoscope.useLoopHook(loopHook);
|
|
|
|
Kaleidoscope.useLoopHook(loopHook);
|
|
|
@ -35,9 +34,6 @@ void ActiveModColorEffect::loopHook(bool is_post_clear) {
|
|
|
|
if (is_post_clear)
|
|
|
|
if (is_post_clear)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
if (oneshot_only && !::OneShot.isActive())
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (byte r = 0; r < ROWS; r++) {
|
|
|
|
for (byte r = 0; r < ROWS; r++) {
|
|
|
|
for (byte c = 0; c < COLS; c++) {
|
|
|
|
for (byte c = 0; c < COLS; c++) {
|
|
|
|
Key k = Layer.lookupOnActiveLayer(r, c);
|
|
|
|
Key k = Layer.lookupOnActiveLayer(r, c);
|
|
|
|