@@ -0,0 +1,883 @@
+package com.edinarobotics.utils.gamepad;%0A%0A/**%0A * This is a convenience class that makes it easier to implement a toggle%0A * button.%0A */%0Apublic class ToggleHelper %7B%0A    private boolean toggleReady;%0A    %0A    /**%0A     * Constructs a new ToggleHelper.%0A     */%0A    public ToggleHelper()%7B%0A        toggleReady = false;%0A    %7D%0A    %0A    /**%0A     * Checks if the boolean value is toggled with respect to previous values.%0A     * @param latestState the current boolean value.%0A     * @return %7B@code true%7D if the value is toggled, %7B@code false%7D otherwise.%0A     */%0A    public boolean isToggled(boolean latestState)%7B%0A        if(latestState == false)%7B%0A            toggleReady = true;%0A        %7D%0A        else if(latestState == true && toggleReady)%7B%0A            toggleReady = false;%0A            return true;%0A        %7D%0A        else%7B%0A            toggleReady = false;%0A        %7D%0A        return false;%0A    %7D%0A%7D%0A

Add ToggleHelper class to make it easier to make toggle buttons.