Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixup develop compiles. #19828

Merged
merged 2 commits into from
Feb 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions quantum/action.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_MOUSE_KEYCODE (mouse_keycode) {
if (IS_MOUSE_KEYCODE(mouse_keycode)) {
pointing_device_keycode_handler(mouse_keycode, pressed);
}
#endif
Expand Down Expand Up @@ -877,7 +877,7 @@ __attribute__((weak)) void register_code(uint8_t code) {
send_keyboard_report();
#endif

} else if IS_BASIC_KEYCODE (code) {
} else if (IS_BASIC_KEYCODE(code)) {
// TODO: should push command_proc out of this block?
if (command_proc(code)) return;

Expand All @@ -890,18 +890,18 @@ __attribute__((weak)) void register_code(uint8_t code) {
}
add_key(code);
send_keyboard_report();
} else if IS_MODIFIER_KEYCODE (code) {
} else if (IS_MODIFIER_KEYCODE(code)) {
add_mods(MOD_BIT(code));
send_keyboard_report();

#ifdef EXTRAKEY_ENABLE
} else if IS_SYSTEM_KEYCODE (code) {
} else if (IS_SYSTEM_KEYCODE(code)) {
host_system_send(KEYCODE2SYSTEM(code));
} else if IS_CONSUMER_KEYCODE (code) {
} else if (IS_CONSUMER_KEYCODE(code)) {
host_consumer_send(KEYCODE2CONSUMER(code));
#endif

} else if IS_MOUSE_KEYCODE (code) {
} else if (IS_MOUSE_KEYCODE(code)) {
register_mouse(code, true);
}
}
Expand Down Expand Up @@ -944,21 +944,21 @@ __attribute__((weak)) void unregister_code(uint8_t code) {
send_keyboard_report();
#endif

} else if IS_BASIC_KEYCODE (code) {
} else if (IS_BASIC_KEYCODE(code)) {
del_key(code);
send_keyboard_report();
} else if IS_MODIFIER_KEYCODE (code) {
} else if (IS_MODIFIER_KEYCODE(code)) {
del_mods(MOD_BIT(code));
send_keyboard_report();

#ifdef EXTRAKEY_ENABLE
} else if IS_SYSTEM (code) {
} else if (IS_SYSTEM_KEYCODE(code)) {
host_system_send(0);
} else if IS_CONSUMER (code) {
} else if (IS_CONSUMER_KEYCODE(code)) {
host_consumer_send(0);
#endif

} else if IS_MOUSE_KEYCODE (code) {
} else if (IS_MOUSE_KEYCODE(code)) {
register_mouse(code, false);
}
}
Expand Down