-
Notifications
You must be signed in to change notification settings - Fork 11
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
Event triggers #34
Comments
Fyi OpenHASP chose these: https://www.openhasp.com/0.7.0/design/objects/#events |
We need |
Also something like |
On gesture and on_draw_end to be done at a later date maybe. |
A thought on events from:
https://docs.lvgl.io/8.3/overview/event.html
A universal
on_event
trigger could be implemented with a parametertype
which can be chosen from an enum of LVGL events.A few shorthands could be implemented for most popular events:
on_press
-> LV_EVENT_PRESSEDon_release
-> LV_EVENT_RELEASEDon_click
-> LV_EVENT_SHORT_CLICKEDon_long_press
-> LV_EVENT_LONG_PRESSEDon_value
-> LV_EVENT_VALUE_CHANGED, returning the value in x (slider has been moved to value x, switch/btn toggled)on_gesture
-> LV_EVENT_GESTURE, returning the gesture (eg. swipe direction)The text was updated successfully, but these errors were encountered: