lv_binding_micropython icon indicating copy to clipboard operation
lv_binding_micropython copied to clipboard

Rewrite sdl keyboard_handler to return SDL key and release state

Open daviel opened this issue 3 years ago • 0 comments

Doing it this way made it possible to find out the release state of one or multiple keys. Also you can add listeners for keys beside the LVGL ones by using the SDL-key-constants.

For whatever reason as soon as I add a group to retrieve events from widgets there is still fired a LV_INDEV_STATE_RELEASED immediately after a LV_INDEV_STATE_PRESSED event. Maybe there is some issue in the way events are handled in the LVGL core? In think that indev_keypad_proc in lv_indev.c may be the reason.

Let me know what you think. Maybe I misunderstood something in the LVGL implementation.

daviel avatar Sep 16 '22 17:09 daviel