Enabling Pointing Device support in register code functions (#18363)

This commit is contained in:
Drashna Jaelre
2022-09-26 20:49:32 -07:00
committed by GitHub
parent d909038b28
commit fb400f2ac2
8 changed files with 17 additions and 57 deletions

View File

@@ -918,6 +918,10 @@ __attribute__((weak)) void register_code(uint8_t code) {
mousekey_on(code);
mousekey_send();
}
#elif defined(POINTING_DEVICE_ENABLE)
else if IS_MOUSEKEY (code) {
pointing_device_keycode_handler(code, true);
}
#endif
}
@@ -978,6 +982,10 @@ __attribute__((weak)) void unregister_code(uint8_t code) {
mousekey_off(code);
mousekey_send();
}
#elif defined(POINTING_DEVICE_ENABLE)
else if IS_MOUSEKEY (code) {
pointing_device_keycode_handler(code, false);
}
#endif
}