@name Joystick Button translator
@inputs Button
@outputs Toggle Flip RightClick
@persist 
@trigger 

if(first()){RightClick=1} #sends a change input command to stool turret
if(Button){
    
    Toggle=!Toggle
    print("Toggle "+Toggle)
}
Flip=!Button

if(Flip){print("Flip on")}else{print("Flip off")}
