How to use hardware button interaction?
Hi,
I am making a project where I need to use hardware buttons,
I found some examples with queue and Model:: tick and it works well,
but also I found harware button interaction in TouchGFX Designer

I want to know how to use it, because it seems like it could be useful for me.
When I generated the code i found only this function:
//Handles when a key is pressed
void Screen2ViewBase::handleKeyEvent(uint8_t key)
{
if(1 == key)
{
//Interaction1
//When hardware button 1 clicked fade textArea2
//Fade textArea2 to alpha:0 with LinearIn easing in 2000 ms (120 Ticks)
textArea2.clearFadeAnimationEndedAction();
textArea2.startFadeAnimation(0, 120, EasingEquations::linearEaseIn);
}
}So, how could I connect my hardware button to the function?
Thanks
Anton
