Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int leftJoyVerify(){
- static int count;
- if(((Controller1.Axis4.value()*Controller1.Axis4.value())/37.5)+37.5<=Controller1.Axis3.value())
- count++;
- if((-(Controller1.Axis4.value()*Controller1.Axis4.value())/37.5)-37.5<=Controller1.Axis3.value())
- count++;
- if(((Controller1.Axis3.value()*Controller1.Axis3.value())/37.5)+37.5<=Controller1.Axis4.value())
- count++;
- if((-(Controller1.Axis3.value()*Controller1.Axis3.value())/37.5)-37.5<=Controller1.Axis4.value())
- count++;
- if(count==1){
- return 1;
- }else{
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement