Split function keys from HID path

This commit is contained in:
2026-04-11 11:46:56 +08:00
parent 3bf1377e56
commit f753a7f883
2 changed files with 66 additions and 0 deletions

View File

@@ -36,3 +36,26 @@ Design notes:
- CDC transport module
- GATT transport module
- nanopb integration and generated protocol code
### Node 2: keyboard split point
Files updated in this step:
- `src/modules/keyboard_module.c`
Design notes:
- reuse the existing keymap and HID path
- add one explicit split point before HID submission
- keep normal keys on HID
- send configured function keys to private transport only
Implemented behavior:
- store the 29-byte function bitmap
- for keyboard usages marked as function keys:
- stop normal HID reporting
- emit `function_key_event`
- for consumer usages marked as function keys:
- stop normal HID reporting
- emit `function_key_event`