Skip to content

Commit da002e4

Browse files
author
mars
committed
updated set button to call Patch::buttonChanged
1 parent a036e60 commit da002e4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

WebSource/web.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ void WEB_setParameter(int pid, float value){
6464
}
6565

6666
void WEB_setButtons(int values){
67-
buttons = values;
67+
if(values != buttons){
68+
if((buttons&(1<<PUSHBUTTON)) != (values&(1<<PUSHBUTTON)))
69+
getInitialisingPatchProcessor()->patch->buttonChanged(PUSHBUTTON, values&(1<<PUSHBUTTON)?4095:0, 0);
70+
buttons = values;
71+
}
6872
}
6973

7074
int WEB_getButtons(){

0 commit comments

Comments
 (0)