-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support for multimedia keys #2
Comments
Indeed, that would be nice to have... |
I had a brainstorm and hacking session with @mgisbers... This is the official documentation: USB HID Usage Tables - Keyboard/Keypad Page The idea on this: We ditch the ASCII to keycode mapping, as it interferes with some generic codes we want to send. After all one should be able to look up an id in a table if the same person is expected to write that id to a file with a hex editor. 😜 The eeprom layout is changed to two bytes for every key:
Let's have some examples:
Any thoughts on this? |
I've come up with a prove of concept... |
Yeah that looks nice! I was also thinking about a 2 byte layout indeed, and even a bit more elaborate since I was considering having the pad send whole sequences. So maybe the first byte can also indicate how many ids are coming? |
Yes, sequences of keys (macros) would be nice... Already thinking about it. |
i'm having problems with the Consumer Keyboard Keycodes, do you need a modifier in the first byte? or i'm missing something? |
@MrGeorgeK55 instead of Line 195 in 5f5ef65
and here Line 198 in 5f5ef65
you need CON_{press,releaseAll} .
|
Thank you @eworm-de: Your branch works perfectly well, however, I had to make a horrible hack to be able to send the Mute keycode via the consumer functions. I can't wait for this project to evolve a bit. |
Winter is coming, and with that more indoors time so this ticket will be picked up at some point. |
Could you explains how you get I want to send this: Edit: Bitmap is ?|?|?|?|WIN|CTRL|SHIFT|ALT |
I wanted to also add support for the consumer page keys, so I added a third configuration byte in eeprom per-key: |
So far with the results of my tests, this is the table of modifier keys: 00 None |
Also i Modified the code for a different project: Macropad 8 Keys based on CH552g, working with Keyboard keys. Consumer keys and macros up to 10 keys. im working to adapt it to this keyboard |
Came with a proof of concept of macros up to 19 consecutive keys (without any modifier by now), also with more documentation. |
nice work @MrGeorgeK55! I'll gave a closer look soon when time allows |
The current implementation only supports alphanumeric and KBD keys as defined from here on further:
3keys_1knob/include/usb_conkbd.h
Line 41 in 5f5ef65
There are a few consumer keys that would be very handly (for example volume up/down) defined from here on:
3keys_1knob/include/usb_conkbd.h
Line 82 in 5f5ef65
Support for those would be much appreciated, but would require some rework of the internals. Especially the storage in and reading from EEPROM.
The text was updated successfully, but these errors were encountered: