fix mousekey call

daktil_manuform
Jack Humbert 2018-09-03 19:48:09 -04:00 committed by Drashna Jaelre
parent 714c82cc2e
commit a14eb01883
1 changed files with 11 additions and 6 deletions

View File

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