Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(gamepad.buttons[14].pressed && gamepad.buttons[15].pressed) { // 1
- controllerStatus.direction = 1;
- }else if(gamepad.buttons[14].pressed && gamepad.buttons[16].pressed ) { //3
- controllerStatus.direction = 3;
- }else if(gamepad.buttons[13].pressed && gamepad.buttons[16].pressed ) { //9
- controllerStatus.direction = 9;
- }else if(gamepad.buttons[13].pressed && gamepad.buttons[15].pressed ) { //7
- controllerStatus.direction = 7;
- }else if(gamepad.buttons[14].pressed) { //2
- controllerStatus.direction = 2;
- }else if(gamepad.buttons[16].pressed) { //6
- controllerStatus.direction = 6;
- }else if(gamepad.buttons[13].pressed) { //8
- controllerStatus.direction = 8;
- }else if(gamepad.buttons[15].pressed) { //4
- controllerStatus.direction = 4;
- }else { // 5
- controllerStatus.direction = 5;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement