It appears that when the BIOS isn't reporting the keyboard LED state back to the keyboard, the old code resulted in sending far too many key reports. (Specifically, out of controll key repeat on OSX)

pull/365/head
Jesse Vincent 7 years ago
parent 1fb97c958b
commit 952198a98a

@ -28,7 +28,6 @@ void NumPad_::loopHook(bool postClear) {
bool numState = !!(kaleidoscope::hid::getKeyboardLEDs() & LED_NUM_LOCK); bool numState = !!(kaleidoscope::hid::getKeyboardLEDs() & LED_NUM_LOCK);
if (!numState) { if (!numState) {
kaleidoscope::hid::pressKey(Key_KeypadNumLock); kaleidoscope::hid::pressKey(Key_KeypadNumLock);
kaleidoscope::hid::sendKeyboardReport();
} }
LEDControl.set_mode(LEDControl.get_mode_index()); LEDControl.set_mode(LEDControl.get_mode_index());

Loading…
Cancel
Save