Beep when button or touch pressed

How to implement beep when button or touch pressed?
I can’t find the relevant callback function so far.

Welcome, why you mean find it? You need implement it in indev , but as offloaded code = non blocking.

feedback_cb in indev can meet the needs: Input device interface — LVGL documentation