sxkbd

Firmware for RP2040-based corne split keyboard
git clone https://git.sinitax.com/sinitax/sxkbd
Log | Files | Refs | Submodules | README | LICENSE | sfeed.txt

commit 5c5637ced37fc3179a7993b17a3361ff4d85472e
parent 085d62c5a4c9cf37ce9de6bdbb4643e3a680450f
Author: Louis Burda <quent.burda@gmail.com>
Date:   Mon, 13 Feb 2023 16:16:50 +0100

Send key report on active modifier change

Diffstat:
Msrc/hid.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/hid.c b/src/hid.c @@ -367,7 +367,8 @@ bool update_keyboard_report(struct hid_keyboard_report *new, struct hid_keyboard_report *old) { - return memcmp(new->codes, old->codes, HID_REPORT_CODES); + return new->mods != old->mods + || memcmp(new->codes, old->codes, HID_REPORT_CODES); } bool