Closed potul closed 1 year ago
I forgot to mention. The issue only appears if the multi-button control is used somewhere in another action.
Increase the Repeat Press Time under Options at 570ms. The difference between Long Press and Repeat Press Time must be greater than PED_SIMULTANEOUS_GAP (50ms). I will investigate if this limit can be removed.
Ok, this makes sense. Maybe you should make the default values of Long Press and Repeat Press Time compatible with this, as at least in my build they were the same. On the same page of timing, is it possible to adjust the debouncing time? I'm having some false double-click, and I suspect it's related of a too low debounce delay for my switchs.
Added Debounce Interval and Simultaneous Gap Time in Options.
Rewritten simultaneous press detection and removed the limitation.
Ok I tested it today, and still buttons are behaving strangely when using double buttons. If not, everything seems to work fine. One example: When using a Control with 2 buttons and pressing both, the press is detected fine, but then the release of the individual buttons is also triggered.
Do you think that release event after a simultaneous press should not be triggered?
Do you think that release event after a simultaneous press should not be triggered?
I was expecting the double button control release event to be triggered, but not the individual buttons. From my perspective, as soon as a simultaneos press is detected, the individual button events should be disabled (press, long press, release, double click, click) until the double press is released, because I want to treat it like it was a third stompswitch. Think about the use case as an example: -I want button 1 to send a momentaneous CC message with value 127, so I set it so that when it's released it sends a CC with value 0. -Button 2 to do something else. -And I want that if I press both buttons, a PC message is sent. I don't want the CC with 0 value to be sent when I'm pressing both buttons.
In some cases it might not hurt to have the individual release event triggered, in others it might. And you can always add whatever action to the release event of the double button control if you need to.
And sorry, I think I commented the wrong issue. This one can be closed as the specific problem was resolved, but the other one I opened and is still open is the one I wanted to comment on. #400
Version 3.0.2 If one button is present in two controls, one only with itself, and the other with another button (for multi-button actions), Long press action for the first control is not triggering an action.
Event is detected by the monitor, but the action linked to it does not trigger.
Repeat Pressed and Long Released work fine, it's just Long Press that does not work.
Deleting the multi-button control fixes the problem, so it seems directly linked to this.