@@ -0,0 +1,759 @@
+package org.usfirst.frc4909.STEAMWORKS.utils;%0A%0Aimport edu.wpi.first.wpilibj.buttons.JoystickButton;%0Aimport edu.wpi.first.wpilibj.command.Command;%0A%0Apublic class Joystick extends edu.wpi.first.wpilibj.Joystick %7B%0A%09public Joystick(int port) %7B%0A%09%09super(port);%0A%09%7D%0A%0A%09public double getThresholdAxis(int axis, double threshold)%7B%0A%09%09if(Math.abs(this.getRawAxis(axis)) %3E Math.abs(threshold))%0A%09%09%09return this.getRawAxis(axis);%0A%09%09else%0A%09%09%09return 0.0;%0A%09%7D%0A%09%0A%09public void buttonPressed(int button, Command command)%7B%0A%09%09JoystickButton newButton = new JoystickButton(this, button);%0A%09%09%0A%09%09newButton.whenPressed(command);%0A%09%7D%0A%09%0A%09public void buttonHeld(int button, Command command)%7B%0A%09%09JoystickButton newButton = new JoystickButton(this, button);%0A%09%09%0A%09%09newButton.whenPressed(command);%0A%09%7D%0A%7D

Create 4909 Utility Joystick Class