Skip to content

Commit

Permalink
fix mousekey call
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhumbert authored and drashna committed Sep 3, 2018
1 parent 714c82c commit a14eb01
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions tmk_core/common/action.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,9 +773,12 @@ void register_code(uint8_t code)
else if IS_CONSUMER(code) {
host_consumer_send(KEYCODE2CONSUMER(code));
}
else if IS_MOUSEKEY(code) {
mousekey_on(code);
}

#ifdef MOUSEKEY_ENABLE
else if IS_MOUSEKEY(code) {
mousekey_on(code);
}
#endif
}

/** \brief Utilities for actions. (FIXME: Needs better description)
Expand Down Expand Up @@ -835,9 +838,11 @@ void unregister_code(uint8_t code)
else if IS_CONSUMER(code) {
host_consumer_send(0);
}
else if IS_MOUSEKEY(code) {
mousekey_off(code);
}
#ifdef MOUSEKEY_ENABLE
else if IS_MOUSEKEY(code) {
mousekey_off(code);
}
#endif
}

/** \brief Utilities for actions. (FIXME: Needs better description)
Expand Down

0 comments on commit a14eb01

Please sign in to comment.