DFRobot / DFRobot_GDL

DFRobot_GDL is a comprehensive display interactive framework that combines display, touch, and UI.
MIT License
20 stars 13 forks source link

x y coordinates of SCLICK #10

Open DanielMarcato opened 10 months ago

DanielMarcato commented 10 months ago

After trying to figure this library out, I am stuck when just trying to read a single touch point coordinates. Experimenting with the available functions I am able to return the tpDev via ui.tpDev.x[0] to ui.tpDev.x[4] but they are all just 0 no matter where on the screen I am clicking. By forcing a double click or other gesture I am able to force an update of the registers apparently but the coordinates seem off for a single click afterwards. How can this library be used to simply return the touch point of a simple click on the screen?

anynameous commented 2 months ago

I am also trying to get the coordinates of a single click for quite some time now. Can anyone help, please?