Add mousekey_send to (un)register_code

This commit is contained in:
Drashna Jaelre 2018-10-03 22:33:06 -07:00 committed by Jack Humbert
parent f13ca59361
commit dad579c8f8

View File

@ -777,6 +777,7 @@ void register_code(uint8_t code)
#ifdef MOUSEKEY_ENABLE
else if IS_MOUSEKEY(code) {
mousekey_on(code);
mousekey_send();
}
#endif
}
@ -841,6 +842,7 @@ void unregister_code(uint8_t code)
#ifdef MOUSEKEY_ENABLE
else if IS_MOUSEKEY(code) {
mousekey_off(code);
mousekey_send();
}
#endif
}