How to read touchscreen coordinates when image or box is clicked?
Hello!
I want to put on screen box, iamge or other rectangular object.
I want to catch event when this object is clicked and read coordinates of click.
How to do it?
At first i tried read coordinates after clicking button. I added iteraction to button, which start c++ function GET_TOUCH()
#include <STM32TouchController.hpp>
void GET_TOUCH()
{
uint32_t x,y;
// Override and implement this function in OPTIONS_SCREEN
STM32TouchController::sampleTouch(x,y);
}I got error
"../touchgfx/gui/src/options_screen_screen/options_screenview.cpp(115): error: #245: a nonstatic member reference must be relative to a specific object@"
How to call sampleTouch(x,y) correctly?
