Repository navigation
Conversation
- Refactor internal tracking structures from a single global keyboard pointer (_kbd) to a fixed-size array (_kbds) supporting up to MAX_KEYBOARDS (4). - Switch from synchronous interrupt reads to asynchronous transfers (USB_ReadIntrMsgAsync) to prevent slow or non-responsive HID devices (such as wireless receiver multi-interfaces) from blocking other keyboards. - Implement device skipping and pruning for non-keyboard HID interfaces to optimize scanning performance. - Update LED controls, event callbacks, and disconnection routines to iterate across all active keyboard slots safely.
dborth
force-pushed
the
multi-keyboard
branch
from
October 18, 2026 19:57
9d074b3 to
5cd06cb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I came across this when I was updating DOSBox.
This updates libwiikeyboard to iterate over all devices reporting a keyboard HID descriptor and track them independently.
Many wireless mouse receivers (and other composite USB devices) report a keyboard interface even when no actual keyboard is connected. Previously, this meant that whichever device initialized first could block or interfere with recognition, meaning you could only use a real keyboard if it happened to be plugged in or initialized before those dummy interfaces.
By tracking multiple HID entries asynchronously, a mouse or dongle reporting a keyboard interface won't block your actual keyboard from working properly anymore.