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

[LVGL] Add lv_indev_set_group action for encoder / keypads #583

Open
zalexzperez opened this issue Oct 12, 2024 · 0 comments
Open

[LVGL] Add lv_indev_set_group action for encoder / keypads #583

zalexzperez opened this issue Oct 12, 2024 · 0 comments
Assignees

Comments

@zalexzperez
Copy link

Is your feature request related to a problem? Please describe.
When we want to unfocus a widget to avoid accidental presses, one workaround is to set the focus to a dummy widget.

Describe the solution you'd like
Implement an lv_indev_set_group(enc_indev, enc_group) action.
Passing null as the second argument unsets the destination group for the input device, solving the problem.

Additional information
mvladic's words: the tricky part is to be able to provide the first argument. His idea:
We can have Get Group Indev with props "Group" and "Encoder type". This will return lv_indev_t * for the given group and encoder type and use returned value in the Set Indev Group action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants