cancel
Showing results for 
Search instead for 
Did you mean: 

How can I access all 3 callbacks of the flexbutton widget? (or any button)

dave23
Associate II

My code needs to react to button press, button down and button released. But only one of these callbacks can be selected in touchgfx designer...

10 REPLIES 10
Freedom_Neo
Senior

Hi Everyone,

I did work this application. But I need a little different. I need as in the video below. It will work as long as the button is pressed, and it will not work when I take my hand off the button. For example; When my hand is pressed on the button, the led will turn on, but when I take my hand off the button, the led will turn off.

What I want to do is, as long as my hand is pressed on the button, the numbers will increase, but when I take my hand off the button, the numbers will not increase.

I've been trying to solve this problem for a few days.