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

Customizable keycode behavior #149

Open
MixedMatched opened this issue Nov 15, 2024 · 1 comment
Open

Customizable keycode behavior #149

MixedMatched opened this issue Nov 15, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@MixedMatched
Copy link

MixedMatched commented Nov 15, 2024

It might be helpful to add a custom handler for key input so that a user can have custom actions that can't be done by existing keycodes. QMK does this with process_record_user.

This could probably be implemented the way QMK does it by having the user supply an optional function pointer with the signature KeyAction -> bool that would be run before the match statement in Keyboard::process_key_change. The returned boolean would then control whether the normal action handler is run after the custom handler. This would maybe also require exposing other fields or channels so that the function could add keycodes to be processed or trigger other parts of the firmware.

@HaoboGu
Copy link
Owner

HaoboGu commented Nov 16, 2024

I agree, we should have this

@HaoboGu HaoboGu added the enhancement New feature or request label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants