Regalix
2020-02-10 03:00:14
Hello,
I've created a very good project for mouse take over and it works perfectly fine.
However, I need to end the translator chain with an automatic mouse-up action ONLY if the following conditions are met:
1. No incoming midi event has been detected for 5 seconds.
2. I didn't execute mouse-up action manually by clicking on a dedicated button on a midi device (with an appropriate translator set).
But here's the quirk: The timer, or delay, shall always restart after every incoming midi event.
So, if after 3 seconds of no incoming midi there's an incoming midi data again - the timer shall restart and start count from zero to 5.
I would appreciate any help at this phase for this.
Thank you in advance!