I need to toggle a momentary pad on a controller.
I have this code:
Code: Select all
pp=0
if ga==0 then Goto "ToggleOn"
if ga==1 then Goto "ToggleOff"
Label "ToggleOn"
ga=1
xx=127
exit rules, execute Outgoing Action
Label "ToggleOff"
ga=0
xx=0
exit rules, execute Outgoing Action
which works perfectly except when using these toggle buttons, it seems they react to each other:
If one toggle is engaged, I need to press the other pad twice instead of once to make it work.
Any ideas why that happens?