@name Joystick Controller 
@inputs B12 B34 B56 B78 B910 B1112 Y X Z R HatUD HatLR
@outputs B1 B2 B3 B4 B5 B6 B7 B8 B9 B10 B11 B12 
@outputs Yup Ydown Xleft Xright Zup Zdown Rleft Rright 
@outputs Hup Hdown Hleft Hright
@persist 
@trigger 

B1=B12>0
B2=B12<0
B3=B34>0
B4=B34<0
B5=B56>0
B6=B56<0
B7=B78>0
B8=B78<0
B9=B910>0
B10=B910<0
B11=B1112>0
B12=B1112<0
Yup=Y<0
Ydown=Y>0
Xleft=X<0
Xright=X>0
Zup=Z<0
Zdown=Z>0
Rleft=R<0
Rright=R>0
Hup=HatUD>0
Hdown=HatUD<0
Hleft=HatLR>0
Hright=HatLR<0


