|
|
@ -90,12 +90,13 @@ void NumPad_::setKeyboardLEDColors(void) {
|
|
|
|
kaleidoscope::EventHandlerResult NumPad_::afterEachCycle() {
|
|
|
|
kaleidoscope::EventHandlerResult NumPad_::afterEachCycle() {
|
|
|
|
if (!Layer.isOn(numPadLayer)) {
|
|
|
|
if (!Layer.isOn(numPadLayer)) {
|
|
|
|
cleanupNumlockState();
|
|
|
|
cleanupNumlockState();
|
|
|
|
} else if (cleanupDone) {
|
|
|
|
} else {
|
|
|
|
// If it's the first time we're in this loop after toggling the Numpad mode on
|
|
|
|
if (cleanupDone) {
|
|
|
|
syncNumlockState(true);
|
|
|
|
// If it's the first time we're in this loop after toggling the Numpad mode on
|
|
|
|
|
|
|
|
syncNumlockState(true);
|
|
|
|
|
|
|
|
cleanupDone = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
setKeyboardLEDColors();
|
|
|
|
setKeyboardLEDColors();
|
|
|
|
cleanupDone = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return kaleidoscope::EventHandlerResult::OK;
|
|
|
|
return kaleidoscope::EventHandlerResult::OK;
|
|
|
|
}
|
|
|
|
}
|
|
|
|