Using touchscreen with LVGL

Description

My LVGL application is not registering touchscreen clicks properly. The touchscreen is working properly, and all other non-LVGL applications work with it, both in desktop and frame buffer modes.

In both desktop using TFT simulator and frame buffer mode, the clicks may only register 30% of the time, and may not register in the right location. This does not happen while using a mouse or touch pad.

The screen does support 10-point touch, even though I don’t use it. But I’m not sure if that is the source of my issue.

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

Desktop x86 Linux, cmake version 3.22.1

What LVGL version are you using?

v8.3.11

What do you want to achieve?

Touchscreen works properly with LVGL application.

What have you tried so far?

Tried using libinput instead of evdev, but libinput seems to be missing some required dependencies.