-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Home and Back button not forwarded when using hid-remapper #120
Comments
HID Remapper's report descriptor is fixed, it doesn't change based on what devices are plugged into it. It just doesn't have these keys so it can't pass them through. You can map them to something else if you want. |
How can one change the report descriptor to enable these keys? |
It's in |
I pulled the descriptor from the keyboard, and extracted the relevant portions. I added these to the hid-remapper descriptor. The result is the hid-remapper can no longer forward (any) events to the host. @jfedor2 do you have any hints for me? Do you think there is a problem with the descriptor? How would one typically go about debugging this?
|
It's because HID Remapper doesn't know how to output "array" usages (its default descriptors don't have them). But you don't have to replicate the report descriptor exactly, the descriptor just has to have the right usages. For example you might add something like this (in the same place):
(edited to add Usage Page) |
Thanks @jfedor2! I really appreciate the feedback. I gave that a try (with and without the usage page), but I have the same behavior. The hid remapper web tool and monitor the device, but hid-remapper isn't forwarding anything to the host. I would really appreciate any additional thoughts and/or some guidance on how to troubleshoot the issue.
|
Ah, there's a bug when the descriptor length is above 255 bytes, which we're just hitting when adding this. The fix would look something like this:
|
It's working now. Thanks for your help @jfedor2 ! Can I ask why we don't just add all of the 'AC' keys to the descriptor so that all of these will be supported if a users keyboard happens to have them? |
I am using a Rii i4 with a hid-remapper. (Rii i4 is using the 2.4ghz usb dongle)
Everything works as expected except for the fact that two buttons (Home and Back) no longer operate when used in conjunction with the Rii i4.
In the monitor tab, these two 'keys' show up as:
Is there a section of the code where we are only allowing certain keys to be forwarded?
Steps to reproduce: Use a keyboard with Home and Back buttons. Press these buttons when plugged in through an hid-remapper
Expected result: Unless these keys are otherwise mapped, the hid-remapper should forward their events to the host device
Actual result: Buttons no longer operate when connection in conjunction with an hid-remapper.
The text was updated successfully, but these errors were encountered: