How does lvgl support multi touch

Description

Hi,I encountered a problem.Does lvgl support multi touch? I did not find any relevant content in the document

What MCU/Processor/Board and compiler are you using?

Xilinx mpsoc

What LVGL version are you using?

8.3.3

What do you want to achieve?

I want to know how lvgl supports multi touch

What have you tried so far?

Single touch has been ported, and multi touch data can also be transmitted through the driver layer. However, the corresponding interface of lvgl seems to only support single touch. If possible, I would like to know how to customize it to achieve multi touch

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:


Screenshot and/or video

If possible, add screenshots and/or videos about the current state.
Normal

@embeddedt @kisvegabor
Can give me some advice? Thank in advance

LVGL doesn’t support multi touch at this moment.

For what purpose would you like to use it?

I would like to expand the content of multi touch and gestures on the basis of single touch. Is this feasible? I hope to provide some suggestions. Thank you in advance :smiley:

There is no built in solution for that at this moment. Probably multi touch support will be added in 2024.

Thank you for your reply. There is one more question. I am currently using gesture events and I feel that they are not very sensitive. I would like to use the gesture passed by the driver to replace the gesture judgment inside lvgl. The process I envision is as follows: after obtaining the gesture, the gesture value is passed to the global variable, and the gesture event is also sent, and then the judgment is made in the callback function. I would like to know other than this method, Is there a method that can be extended and implemented on the existing basis? This can make the code more standardized. Thank you in advance for your reply :smiley:

This topic was also mentioned and we definitely need to figure out something for that.

Until that, sending a gesture event manually to lv_indev_get_obj_act(indev) should work.

Hi, sorry for digging up an old post. I am just wondering if you could kindly let me know if support for multi-touch has been added yet? Your help would be greatly appreciated. Thank you!

In progress here: feat(indev): add multi touch gestures by etag4048 · Pull Request #7078 · lvgl/lvgl · GitHub :slight_smile:

I’m thrilled to see the progress, thanks! :smile:

1 Like