scroll_throw_vect.y = (indev->pointer.scroll_throw_vect.y + indev->pointer.vect.y) / 2; This assumes that indev_proc_press() is called at a roughly fixed interval. But if an input driver with LV_INDEV_MODE_EVENT delivers events much more quickly (like SDL does), the scroll vector...
Embedded graphics library to create beautiful UIs for any MCU, MPU and display type. - lvgl/src/core/lv_indev_scroll.c at 3d4c4aea3c9435b80a8f3c2dcfe1b484f9db6775 · lvgl/lvgl
{ lv_indev_t * click_source = lvindevget_act(); if(click_source == )return; lv_event_code_t code = lv_eventget(e); lv_obj_t * obj = lv_event_get_target(e); lv_textt * ta = (lv_textarea_t *)obj; if(ta->cursor.clickpos == 0) return; if(lv...
importpika_lvglaslvfromPikaStdLibimportMemCheckermem=MemChecker()defdrag_event_handler(e):obj=e.get_target()indev=lv.indev_get_act()vect=lv.point_t()indev.get_vect(vect)x=obj.get_x()+vect.xy=obj.get_y()+vect.yobj.set_pos(x,y)mem.now()## Make an object dragable.#obj=lv.obj...
Embedded graphics library to create beautiful UIs for any MCU, MPU and display type. - lvgl/src/indev/lv_indev.c at 177b0bd04449dd1e61351de7204a00efe1fc97ed · lvgl/lvgl
scroll_throw_vect.y = 0; indev->proc.types.pointer.gesture_sum.x = 0; @@ -1070,15 +1071,15 @@ void indev_gesture(lv_indev_proc_t * proc)if(LV_ABS(proc->types.pointer.gesture_sum.x) > LV_ABS(proc->types.pointer.gesture_sum.y)) {...
Embedded graphics library to create beautiful UIs for any MCU, MPU and display type. - lvgl/src/core/lv_indev_scroll.c at 6acbdaa53d941b891db377e65111bd999f04631d · lvgl/lvgl
Embedded graphics library to create beautiful UIs for any MCU, MPU and display type. - lvgl/src/core/lv_indev_scroll.c at 8ed8542681d808e7719a2247ce2e267ba14792c4 · lvgl/lvgl
Embedded graphics library to create beautiful UIs for any MCU, MPU and display type. - lvgl/src/core/lv_indev_scroll.c at d67dd943cadb3d21a3d9488b6354f669e2e58c65 · lvgl/lvgl
Embedded graphics library to create beautiful UIs for any MCU, MPU and display type. - lvgl/src/core/lv_indev_scroll.c at 663bcfd0300b8460a766a450c508fe799302aaac · lvgl/lvgl