Dear all,

there is IMO a counter-intuitive handling of the buttons.
I want to detect both buttons pressed to reset my settings. However, when on button is pressed, the BUTTON_isPressed status of the other button is reset.
According to button.h this is intentional "Button status will be cleared after it is read using this API."

Any idea how with the status clearing both buttons down can be detected?

Thanks!

Best,
Tjalf
0 (0 투표)
Bug? Button Handling - Detect both buttons pressed
응답
15. 8. 27 오후 2:39 as a reply to T. Pirk.
Sorry - with insufficient right, no edit possible.
I found the hint in button.h that the behavior is intentional only after starting the thread. If it's intentional, of course it's no bug, but a feature...
0 (0 투표)
Bug? Button Handling - Detect both buttons pressed
응답
15. 8. 28 오전 4:02 as a reply to T. Pirk.
Hey tpirk,

We got this behaviour reported before as well. I've noted your concern to change this in the future and forwarded it to our second level support.

- Florian
0 (0 투표)
Bug? Button Handling - Detect both buttons pressed
응답
15. 8. 28 오전 6:11 as a reply to Florian Harr.
On a more humble note, I've noted in the meantime the difficulty in dual button handling while trying to implement it myself, as the standard release events must be filtered as well after a "dual button event". Not so straightforward - and certainly not solved by having the current status of the button kept. =)
So I'm good again...
0 (0 투표)