@@ -0,0 +1,1822 @@
+/*%0A * Gamepad class to encapsulate FRC 1076 PiHiSamuari's Logitech Gamepads%0A * Adopted from FRC 830 Rat Packs C++ Version%0A * %0A */%0A%0Apackage org.pihisamurai;%0Aimport edu.wpi.first.wpilibj.Joystick; %0Aimport edu.wpi.first.wpilibj.DriverStation; %0A%0A/**%0A *%0A * @author PiHi Samurai 1076%0A */%0Apublic class Gamepad extends Joystick%7B%0A    static final int LEFT_BUMPER = 5;%0A    static final int RIGHT_BUMPER = 6;%0A    static final int LEFT_TRIGGER = 7;%0A    static final int RIGHT_TRIGGER = 8;%0A    %0A    %0A    static final int F310_A = 1;%0A    static final int F310_B = 2;%0A    static final int F310_X = 3;%0A    static final int F310_Y = 4;%0A    static final int F310_LB = 5;%0A    static final int F310_RB = 6;%0A    static final int F310_L_BACK = 7;%0A    static final int F310_R_START = 8;%0A    %0A    static final int F310_LEFT_Y = 2;%0A    static final int F310_LEFT_X = 1;%0A    static final int F310_RIGHT_Y = 5;%0A    static final int F310_RIGHT_X = 4;%0A    static final int F310_TRIGGER_AXIS = 3;%0A    static final int F310_DPAD_X_AXIS = 6;%0A %0A%0A    %0A    %0A    %0A    int port;%0A    DriverStation driverStation;%0A    Gamepad(int port)%7B%0A        super(port);%0A        this.port = port;%0A        driverStation = DriverStation.getInstance();%0A    %7D%0A    %0A    double getLeftX()%7B%0A        return getRawAxis(F310_LEFT_X);%0A    %7D%0A    double getLeftY()%7B%0A        return getRawAxis(F310_LEFT_Y);%0A    %7D%0A    double getRightX()%7B%0A        return getRawAxis(F310_RIGHT_X);%0A    %7D%0A    double getRightY()%7B%0A        return getRawAxis(F310_RIGHT_Y);%0A    %7D%0A    public double getRawAxis(int axis)%7B%0A            return driverStation.getStickAxis(port, axis);%0A    %7D%0A    %0A    //???%0A    boolean getNumberedButton(int button)%7B%0A        return ((0x1 %3C%3C (button-1)) & driverStation.getStickButtons(port)) != 0;%0A    %7D%0A    %0A    public boolean getButtonA()%7B%0A        return getNumberedButton(1);%0A    %7D%0A%7D%0A

Create Gamepad.java