Advertisement
Monokeros

pcwirestick8838

Mar 11th, 2015
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. if(gamepad.buttons[14].pressed && gamepad.buttons[15].pressed) { // 1
  2. controllerStatus.direction = 1;
  3. }else if(gamepad.buttons[14].pressed && gamepad.buttons[16].pressed ) { //3
  4. controllerStatus.direction = 3;
  5. }else if(gamepad.buttons[13].pressed && gamepad.buttons[16].pressed ) { //9
  6. controllerStatus.direction = 9;
  7. }else if(gamepad.buttons[13].pressed && gamepad.buttons[15].pressed ) { //7
  8. controllerStatus.direction = 7;
  9. }else if(gamepad.buttons[14].pressed) { //2
  10. controllerStatus.direction = 2;
  11. }else if(gamepad.buttons[16].pressed) { //6
  12. controllerStatus.direction = 6;
  13. }else if(gamepad.buttons[13].pressed) { //8
  14. controllerStatus.direction = 8;
  15. }else if(gamepad.buttons[15].pressed) { //4
  16. controllerStatus.direction = 4;
  17. }else { // 5
  18. controllerStatus.direction = 5;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement