2
* To change this template, choose Tools | Templates
3
* and open the template in the editor.
6
package com.shadowh511.mayor.inputs;
8
import edu.wpi.first.wpilibj.Joystick;
14
public class Attack3 {
15
private Joystick controller;
17
public Attack3(int port) {
18
controller = new Joystick (port);
21
public double getX() {
22
return this.controller.getRawAxis(2);
25
public double getY() {
26
return this.controller.getRawAxis(1);
29
public double getThrottle() {
30
return this.controller.getRawAxis(3);
33
public boolean getTrigger() {
34
return this.controller.getRawButton(1);
37
public boolean get2() {
38
return this.controller.getRawButton(2);
41
public boolean get3() {
42
return this.controller.getRawButton(3);
45
public boolean get4() {
46
return this.controller.getRawButton(4);
49
public boolean get5() {
50
return this.controller.getRawButton(5);
53
public boolean get6() {
54
return this.controller.getRawButton(6);
57
public boolean get7() {
58
return this.controller.getRawButton(7);
61
public boolean get8() {
62
return this.controller.getRawButton(8);
65
public boolean get9() {
66
return this.controller.getRawButton(9);
69
public boolean get10() {
70
return this.controller.getRawButton(10);
73
public boolean get11() {
74
return this.controller.getRawButton(11);