mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-11 14:40:06 +00:00
Enable mouse keys in register_code and unregister_code
This allows for macros to be assigned to press two mouse directions at same time, which allows for one key diagonals.
This commit is contained in:
parent
04bea9ef74
commit
fa1ee47cf2
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue