go-hidproxy icon indicating copy to clipboard operation
go-hidproxy copied to clipboard

Media keys not being passed through, at least to Windows hosts.

Open a-singer opened this issue 3 years ago • 3 comments

Hi,

I note that, though the media keys are mapped in main.go, and though I mapped a few more of them, none are passed through to the host or have any effect on the host when the host is either Windows 7 or 10 at least. I have the mapping as:

113: 127, // Mute
114: 129, // VolDn
115: 128, // VolUp
164: 232, // PlayPause
165: 234, // PreviousTrack
163: 233, // NextTrack

and that mapping, combining my own mapping and that which was already there, seems to correspond to the USB HID specification and the keys received from the Bluetooth board. However, I can hit these keys as much as I like but nothing happens on the host. I have tried several keyboard code display programs but they don't even seem to see the multimedia keys. I understand, from the research, that this may require some sort of separate descriptor to pass multimedia keys to Windows? I'm a bit lost on this so put it forward very tentatively. Any ideas would be very greatly appreciated. All the keys on my board, including my braille keyboard, seem to work except for these. The excellence of this code for unique boards can't be overestimated.

Thanks,

a-singer avatar May 27 '21 18:05 a-singer