Get Button Status (Pressed and Released)
Hello,
I have to send send the status of one flexbutton(even a group of flexbuttons...) to a communication task.
I created a Queue in Model.cpp via the Vien-Presenter chain. And while the button is pressed com task receives '1'. So far so good.
But what I want is to send is the pressed status but also released, because it could be used for actuator.
The status could be send one time or multiple time.
I tried a solution with 3 interactions:
1.Button is clicked call virtual function
2.Timer
3.When timer is done call the same virtual function.
In the virtual function, I check the button status with getPressed() function.
But this method doesn't always work.
Is there a more elegant method to do this?
Pierre
