summaryrefslogtreecommitdiff
path: root/quantum/action.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/action.c')
-rw-r--r--quantum/action.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/quantum/action.c b/quantum/action.c
index a1476131b9..4f01acb96e 100644
--- a/quantum/action.c
+++ b/quantum/action.c
@@ -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
}