Skip to content
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

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

Open
a-singer opened this issue May 27, 2021 · 3 comments
Open

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

a-singer opened this issue May 27, 2021 · 3 comments

Comments

@a-singer
Copy link

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,

@rosmo
Copy link
Owner

rosmo commented May 29, 2021

Can you use something that shows the keycode on Windows? (maybe this: https://www.nirsoft.net/utils/keyboard_state_view.html)

@rosmo
Copy link
Owner

rosmo commented May 29, 2021

I added a few of the keycodes now (Delete, Play/Pause, Next and Previous track). Mute/VolDn/Up already existed.

@a-singer
Copy link
Author

Hi,

Thanks for looking into this. I used both the utility you mentioned as well as the AutoHotkey key spy system, but neither seems to pick up the media keys from any keyboard. That is, even my other keyboard, which is USB, is plugged directly into the PC, and on which hitting the media keys works fine to control media does not show these keys when using KeyboardStateView or the AutoHotkey utilities. The keys from that USB keyboard work well, but the keyboard utility doesn't see them. The keys from the Bluetooth keyboard, even after having added them to the mapping, don't work at all though, of course, other keys work fine. If I may ask, are the media keys working on your end when running them through Go-HidProxy?
Thanks again for having a look. t

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants