You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//We only handle press evts for adj ctrls, as that's the only evt encoders generate.
333
326
//But we can handle short and long holds and releases for the sel ctrls (always buttons).
334
-
//TODO needs alt handling
327
+
//TODO needs altSel
335
328
336
329
//Before all else, is it a press to stop the signal? Silence it
337
330
if(signalRemain>0 && evt==1){
@@ -558,8 +551,8 @@ void doSetHold(){
558
551
//TODO integrate this with checkInputs?
559
552
if(doSetHoldLast+250<millis()) {
560
553
doSetHoldLast = millis();
561
-
if(fnSetPg!=0 && ((mainAdjType==1 && (btnCur==mainAdjUp || btnCur==mainAdjDn)) || (altAdjType==1 && (btnCur==altAdjUp || btnCur==altAdjDn))) ){ //if we're setting, and this is an adj input for which the type is button
562
-
bool dir = (btnCur==mainAdjUp || btnCur==altAdjUp ? 1 : 0);
554
+
if(fnSetPg!=0 && (mainAdjType==1 && (btnCur==mainAdjUp || btnCur==mainAdjDn)) ){ //if we're setting, and this is an adj btn
555
+
bool dir = (btnCur==mainAdjUp ? 1 : 0);
563
556
//If short hold, or long hold but high velocity isn't supported, use low velocity (delta=1)
0 commit comments