package org.usfirst.frc.team2503.r2016.input.joystick;

public abstract class Joystick extends edu.wpi.first.wpilibj.Joystick {

	public class ControllerButton {
		
		private final int channel;
		
		public boolean get() {
			return Joystick.this.getRawButton(channel);
		}
		
		
		public ControllerButton(final int port) {
			this.channel = port;
		}
		
	}
	
	public class ControllerPOV {
		
		public final int channel;
		
		public int get() {
			return Joystick.this.getPOV(channel);
		}
		
		public double getDegrees() {
			return (double) this.get();
		}
		
		public ControllerPOV(final int channel) {
			this.channel = channel;
		}
		
		public ControllerPOV() {
			this.channel = 0;
		}
		
	}
	
	public enum ControllerAxisType {
		NEGATIVE_TO_POSITIVE, ZERO_TO_POSITIVE
	}

	public class ControllerAxis {

		private final int channel;
		private final ControllerAxisType type;
		
		public double get() {
			return Joystick.this.getRawAxis(channel);
		}
		
		public ControllerAxisType getType() {
			return type;
		}
		
		public ControllerAxis(final int port, ControllerAxisType type) {
			this.channel = port;
			this.type = type;
		}
		
	}
	
	public Joystick(int port) {
		super(port);
	}
	
}

@@ -155,19 +155,17 @@
 utton %7B%0A
-%09%09
 %0A
+
 %09%09privat
@@ -177,35 +177,33 @@
 al int channel;%0A
-%09%09
 %0A
+
 %09%09public boolean
@@ -266,14 +266,9 @@
 %09%09%7D%0A
-%09%09%0A%09%09
 %0A
+
 %09%09pu
@@ -331,32 +331,29 @@
 = port;%0A%09%09%7D%0A
-%09%09
 %0A
+
 %09%7D%0A
-%09
 %0A
+
 %09public clas
@@ -370,19 +370,17 @@
 erPOV %7B%0A
-%09%09
 %0A
+
 %09%09public
@@ -399,19 +399,17 @@
 hannel;%0A
-%09%09
 %0A
+
 %09%09public
@@ -458,35 +458,33 @@
 V(channel);%0A%09%09%7D%0A
-%09%09
 %0A
+
 %09%09public double 
@@ -529,27 +529,25 @@
 .get();%0A%09%09%7D%0A
-%09%09
 %0A
+
 %09%09public Con
@@ -605,27 +605,25 @@
 hannel;%0A%09%09%7D%0A
-%09%09
 %0A
+
 %09%09public Con
@@ -658,32 +658,29 @@
 el = 0;%0A%09%09%7D%0A
-%09%09
 %0A
+
 %09%7D%0A
-%09
 %0A
+
 %09public enum
@@ -848,19 +848,17 @@
 e type;%0A
-%09%09
 %0A
+
 %09%09public
@@ -918,27 +918,25 @@
 annel);%0A%09%09%7D%0A
-%09%09
 %0A
+
 %09%09public Con
@@ -983,19 +983,17 @@
 pe;%0A%09%09%7D%0A
-%09%09
 %0A
+
 %09%09public
@@ -1104,16 +1104,13 @@
 %09%09%7D%0A
-%09%09
 %0A
+
 %09%7D%0A
-%09
 %0A
+
 %09pub
@@ -1152,12 +1152,11 @@
 rt);%0A%09%7D%0A
-%09
 %0A%7D%0A

Remove some stupid trailing whitespace