Skip to content

Commit

Permalink
Enable mouse keys in register_code and unregister_code
Browse files Browse the repository at this point in the history
This allows for macros to be assigned to press two mouse directions at same time, which allows for one key diagonals.
  • Loading branch information
Steven Liu authored and jackhumbert committed Sep 3, 2018
1 parent 04bea9e commit fa1ee47
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tmk_core/common/action.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,9 @@ void register_code(uint8_t code)
else if IS_CONSUMER(code) {
host_consumer_send(KEYCODE2CONSUMER(code));
}
else if IS_MOUSEKEY(code) {
mousekey_on(code);
}
}

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

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

0 comments on commit fa1ee47

Please sign in to comment.