summaryrefslogtreecommitdiff
path: root/quantum/action.c
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2023-02-12 17:09:34 +0000
committerGitHub <noreply@github.com>2023-02-12 17:09:34 +0000
commit6ceff1367d1d3c6fbf6f903ea9ef7aff9099eec5 (patch)
treeb073196d43f2133f3a1e515712194cc649159b6c /quantum/action.c
parent13af26526837c9a82b53a42b1820ce19d587553c (diff)
Tidy up use of keycode range helpers (#19813)
Diffstat (limited to 'quantum/action.c')
-rw-r--r--quantum/action.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/quantum/action.c b/quantum/action.c
index 72f132eaa8..0f8219a3d1 100644
--- a/quantum/action.c
+++ b/quantum/action.c
@@ -323,7 +323,7 @@ void register_mouse(uint8_t mouse_keycode, bool pressed) {
#elif defined(POINTING_DEVICE_ENABLE)
// if mousekeys isn't enabled, and pointing device is enabled, then
// let pointing device do all the heavy lifting, then
- if IS_MOUSEKEY (mouse_keycode) {
+ if IS_MOUSE_KEYCODE (mouse_keycode) {
pointing_device_keycode_handler(mouse_keycode, pressed);
}
#endif
@@ -895,13 +895,13 @@ __attribute__((weak)) void register_code(uint8_t code) {
send_keyboard_report();
#ifdef EXTRAKEY_ENABLE
- } else if IS_SYSTEM (code) {
+ } else if IS_SYSTEM_KEYCODE (code) {
host_system_send(KEYCODE2SYSTEM(code));
- } else if IS_CONSUMER (code) {
+ } else if IS_CONSUMER_KEYCODE (code) {
host_consumer_send(KEYCODE2CONSUMER(code));
#endif
- } else if IS_MOUSEKEY (code) {
+ } else if IS_MOUSE_KEYCODE (code) {
register_mouse(code, true);
}
}
@@ -958,7 +958,7 @@ __attribute__((weak)) void unregister_code(uint8_t code) {
host_consumer_send(0);
#endif
- } else if IS_MOUSEKEY (code) {
+ } else if IS_MOUSE_KEYCODE (code) {
register_mouse(code, false);
}
}