Connect touch signal to lvgl

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

STM32F103RCT6, custom board
STM32CubeIDE with gcc

LCD: st7789, 128*160, rgb565
touch: xpt2046 with 12 bit ADC

What LVGL version are you using?

v7.11

What do you want to achieve?

I’d like to know how to get touched-coordinate and make lvgl know it.

Is there someone who let me know the specific process?
I can get the touch coordinate with xpt2046 lib, I’ve imported lvgl with my main project.
Now I’m trying to make button interaction, for example, a page/window changes when I touch the button.

I’ve made the iv_indev setting,
How does it know I’m touching an object created with lvgl?
After getting the touch coordinates, how does it change the event when those coordinates are inside the object area?
I don’t know this structure.

Take a look at the porting example for a touchpad.

As long as you register your input device and the read_cb function is implemented correctly, LVGL figures out which object you touched itself.