In lvgl8, you can set the feedback_cb callback function when lv_indev_drv_register, and this callback function can be called when touching any widget.
In lvgl9, feedback_cb has been removed, so how can I listen to the event callback of the global widget? I want this method to perform the tactile feedback function.
This is just a callback function for reading touches, and it cannot get which widgets triggered the events.
There is feedback in v8, but it is gone in v9.
I am not sure if I understand correctly as I havent used LVGL 8 a lot, but Iām not sure if something like that would exist in LVGL 9? You implemented it to have global feedback regardless of the widget? What about adding a callback to the active screen with LV_EVENT_ALL?
That could be done and also it could be done from inside of the indev read callback function as well. There are multiple ways to actually handle this one of them being to disable the polling of the indev driver and set your own timer to handle the process this would allow the user to step in the middle of the processing of the input so they can capture any inputs that actually triggered a response from any of the elements in LVGL.