Question
Touchgfx mixins touchlistener detect long-press on an image.
I am trying to implement long press 3sec on an image which has touchlistener mixins enabled.
I am tried the button like tickEvent approch it doesn't work.
void Screen1View::handleTickEvent()
{
if(evaluate_long_press)
{
counter++;
if(counter == 1000)
{
evaluate_long_press = false;
counter = 0;
static_cast<FrontendApplication*>(Application::getInstance())->gotoScreen2ScreenCoverTransitionEast();
}
}
}And I am also tried adding this line to the image class.
Application::getInstance()->registerTimerWidget(this);I don't know how to implement this please someone help me to implement 3s long press on an image.