I'm working on the settings of calibrating the XPT2046 to ILI9488, I've developed a simple function to toggle a button, but the touch areas aren't inline with the button coordinates.
I'm using TFT_Touch.h by Rowboteer
I've used x and y raw and converted values and tried even to modify the values to trail/error the mapped values, but every time there's a difference the the touch area isn't working as expected even if the mapped values is very near to the button coordinates.
Print out the readings you are getting and see what tolerance and repeatable you are getting.
You might need to use a stylus to get a finer resolution.