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

Feature request: Support generic desktop usage page #1535

Open
urob opened this issue Nov 11, 2022 · 2 comments
Open

Feature request: Support generic desktop usage page #1535

urob opened this issue Nov 11, 2022 · 2 comments
Labels
core Core functionality/behavior of ZMK hid

Comments

@urob
Copy link
Contributor

urob commented Nov 11, 2022

Currently, only the "keyboard/keypad" and "consumer" pages are supported (https://github.com/zmkfirmware/zmk/blob/main/app/src/hid.c#L237-L245).

Supporting the "generic desktop" usage page would allow using various system-related keys, some of which are already defined but not operational (https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/keys.h#L12-L22).

Related: #1077

@joelspadin joelspadin added core Core functionality/behavior of ZMK hid labels Jul 7, 2023
@chrissicool
Copy link
Contributor

I was looking for a key code to mute the microphone. Then I found this issue, because the USB HID specification was updated recent'ish [1] to add a system microphone mute code. But it's a system-related key and is part of the "Generic Desktop" usage page. Looks like there is one more interesting key to unlock with that feature.

At least Linux is able to handle this starting from v6.3. I don't know about other OSes.

[1] https://www.usb.org/sites/default/files/hutrr110-systemmicrophonemute.pdf

@angweekiat
Copy link
Contributor

Hi, I tried my hand at this, and the changes are viewable in the PR above, please give it a try / test it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core functionality/behavior of ZMK hid
Projects
None yet
Development

No branches or pull requests

4 participants