[K1 Pro] Provide weak raw_hid_receive_kb function - #506
Conversation
Added a default weak implementation for `raw_hid_receive_kb` to allow handling of raw HID commands. This enables the K1 Pro to add custom HID IDs added by custom firmware without first having to patch this codebase (to add this change). I am adding this to support adding AI-status keys (that function bidirectionally) to the K1 Pro, which I have already added to an unrelated QMK keyboard.
|
Incase you're curious why this is necessary: I need to add custom HID commands to support custom AI Agent status keys. I have proven this works on a competitor's QMK keyboard, but I need this change to make this work on the K1 Pro (which, given how QMK firmware is built, I can do locally, but patching another repo before compilation is not ideal). https://github.com/pickypg/claude-macropad You can also see the code changes for K1 Pro in this branch on my repo: https://github.com/pickypg/claude-macropad/tree/keychron/k1-pro/qmk-userspace/keyboards/keychron/k1_pro/ansi/rgb/keymaps/claude_macropad (the branch may at some point be removed / deleted). |
Keychron/qmk_firmware#506 submits this same patch (default weak raw_hid_receive_kb()) upstream. Note it in both the patch's own comment and the README so anyone patching by hand checks first whether it's already been merged.
|
@lokher Hoping you can take a look at this one and merge it into the |
|
I have since made my macropad repo more specific to QMK keyboards (removing support for the RP2040, which remains in the git history). Separately, I have added support for other agents (Codex, Cursor, and Grok Build). As a result, the links above change: https://github.com/pickypg/ai-agent-macropad The more I use this feature on my keyboards, the more that I think that it is invaluable. Hopefully this can be merged. |
|
I also created a browser-based QMK flasher that you can use straight from GitHub. https://github.com/pickypg/qmk-browser-flasher GitHub Page: https://pickypg.github.io/qmk-browser-flasher/ |
Added a default weak implementation for
raw_hid_receive_kbto allow handling of raw HID commands.Description
This enables the K1 Pro to support custom HID IDs added by custom firmware without first having to patch this codebase (to add this change).
I am adding this to support adding AI-status keys (that function bidirectionally) to the K1 Pro, which I have already added to an unrelated QMK keyboard.
Types of Changes
Checklist
falseto one that can be overridden