@@ -0,0 +1,569 @@
+package org.robockets.buttonmanger.buttons;%0A%0Aimport org.robockets.buttonmanger.Button;%0A%0Aimport edu.wpi.first.wpilibj.command.Command;%0A%0Apublic class ToggleButton extends Button %7B%0A%09private boolean toggle = false;%0A%0A%09public ToggleButton(int joystickNumber, int buttonNumber, Command command) %7B%0A%09%09super(joystickNumber, buttonNumber, command);%0A%09%7D%0A%0A%09// Only runs if button is not pushed%0A%09public void notPressed() %7B%0A%09%09if (running) %7B%0A%09%09%09stop();%0A%09%09%7D%0A%09%7D%0A%09%0A%09public void pressed() %7B%0A%09%09if (!toggle && !running) %7B%0A%09%09%09super.start();%0A%09%09%7D%0A%09%7D%0A%09%0A%09public void stop() %7B%0A%09%09super.stop();%0A%09%7D%0A%7D%0A

Add rough toggle button support