-
-
Notifications
You must be signed in to change notification settings - Fork 37.9k
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
Add custom keycode support to JSON files #6873
Comments
Would this go in the I see where |
It would go into keymap.py. There is currently no way to specify a custom keycode in configurator exports. This issue is a step towards being able to specify custom keycodes in configurator. |
So just placing an enum in the default template? mi11y@3b451a1 Are there any keymap.c files in the repo that define custom keycodes? I have a fair idea of how layers and keycodes are taken from the JSON in keymap.py/ |
It should go above the layer definition but yes you're on the right track there. The next step will be to extend a configurator export with The documentation for custom keycodes is here: https://docs.qmk.fm/#/custom_quantum_functions?id=custom-keycodes |
I'm currently confused about the process of doing this, is this already in the making? |
I think (might be wrong here) a good place to start would be to look in This python code will go through a configurator export JSON and extract out the keycodes and keymap and format them into the C |
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity occurs. |
Hi! Im participating in Hacktoberfest and I'd like to know if this issue is counted in Hacktoberfest and if I can work on it? |
Implemented in #19925 |
Feature Request Type
Description
When a JSON file is compiled (
qmk compile configurator_export.json
) it's currently not possible to use custom keycodes. We should add a new key,custom_keycodes
, which the user can populate.For the initial implementation we should add this to the keyboard template:
We will then need to extend the
generate()
function inlib/python/qmk/keymap.py
to also generate and write values for this enum.This feature will not be immediately useful but other features (such as macros and interacting with userspace code) will build on this feature.
The text was updated successfully, but these errors were encountered: