Setting button pressed and released events
I am using normal buttons and I set an interaction like this
I saw this function will be called when button is released in this link -> https://community.st.com/s/question/0D50X0000BKAnAV/is-there-a-way-to-have-button-trigger-on-the-press-of-the-button-and-not-the-release
and I want to have event when it is pressed. I went AbstractButton.cpp for this and I did some changes but I couldn't see any effect.
I added printf but couldn't see anything on the screen, I commented out functions but it is still firing callback.
Here is the callback
In this callback I tried to use getPressedState() function to see if released or pressed but TouchGFX IDE always deletes what I write.
Can you help me to solve this problem?