Fix bug in do_code16()
(#6935)
* Fix bug in `do_code16()` * Remove qk_ mods functions
This commit is contained in:
parent
4522519079
commit
63f4806d7a
3 changed files with 45 additions and 37 deletions
|
@ -868,9 +868,9 @@ void tap_code(uint8_t code) {
|
|||
unregister_code(code);
|
||||
}
|
||||
|
||||
/** \brief Utilities for actions. (FIXME: Needs better description)
|
||||
/** \brief Adds the given physically pressed modifiers and sends a keyboard report immediately.
|
||||
*
|
||||
* FIXME: Needs documentation.
|
||||
* \param mods A bitfield of modifiers to unregister.
|
||||
*/
|
||||
void register_mods(uint8_t mods) {
|
||||
if (mods) {
|
||||
|
@ -879,9 +879,9 @@ void register_mods(uint8_t mods) {
|
|||
}
|
||||
}
|
||||
|
||||
/** \brief Utilities for actions. (FIXME: Needs better description)
|
||||
/** \brief Removes the given physically pressed modifiers and sends a keyboard report immediately.
|
||||
*
|
||||
* FIXME: Needs documentation.
|
||||
* \param mods A bitfield of modifiers to unregister.
|
||||
*/
|
||||
void unregister_mods(uint8_t mods) {
|
||||
if (mods) {
|
||||
|
@ -890,6 +890,28 @@ void unregister_mods(uint8_t mods) {
|
|||
}
|
||||
}
|
||||
|
||||
/** \brief Adds the given weak modifiers and sends a keyboard report immediately.
|
||||
*
|
||||
* \param mods A bitfield of modifiers to register.
|
||||
*/
|
||||
void register_weak_mods(uint8_t mods) {
|
||||
if (mods) {
|
||||
add_weak_mods(mods);
|
||||
send_keyboard_report();
|
||||
}
|
||||
}
|
||||
|
||||
/** \brief Removes the given weak modifiers and sends a keyboard report immediately.
|
||||
*
|
||||
* \param mods A bitfield of modifiers to unregister.
|
||||
*/
|
||||
void unregister_weak_mods(uint8_t mods) {
|
||||
if (mods) {
|
||||
del_weak_mods(mods);
|
||||
send_keyboard_report();
|
||||
}
|
||||
}
|
||||
|
||||
/** \brief Utilities for actions. (FIXME: Needs better description)
|
||||
*
|
||||
* FIXME: Needs documentation.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue