-
-
Notifications
You must be signed in to change notification settings - Fork 39.6k
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
Update encoder logic #13109
Update encoder logic #13109
Conversation
Update encoder logic to act more consistently.
Update encoder logic to act more consistently.
Thank you for your contribution! |
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have not moved the logic from the iso/keymap.c file because I'm not totally sure where to put it exactly.
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
I accepted the requested change . |
uint16_t keycode = get_event_keycode(pressed, false); | ||
if (keycode > 0) { | ||
uint16_t held_keycode_timer = timer_read(); | ||
register_code16(keycode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will miss most keycodes that aren't basic keycodes.
A better option is to use action_exec to trigger the matrix locations, rather than this.
You can see an example of what I mean in keyboards/work_louder/encoder_actions.c
Thank you for your contribution! |
Thank you for your contribution! |
Description
Types of Changes
Issues Fixed or Closed by This PR
Checklist