@@ -0,0 +1,1158 @@
+package com.edinarobotics.utils.gamepad.filters;%0A%0Aimport com.edinarobotics.utils.gamepad.GamepadFilter;%0Aimport com.edinarobotics.utils.gamepad.GamepadResult;%0A%0A/**%0A * This filter can be used to apply a deadzone to all the axes of a Gamepad.%0A */%0Apublic class DeadzoneFilter implements GamepadFilter%7B%0A    private double deadzone;%0A    /**%0A     * Constructs a DeadzonFilter with the specified radius.%0A     * @param radius the radius of the deadzone (inclusive).%0A     */%0A    public DeadzoneFilter(double radius)%7B%0A        deadzone = radius;%0A    %7D%0A    %0A    /**%0A     * Performs the deadzone filtering.%0A     * @param toFilter the input GamepadResult.%0A     * @return the deadzoned GamepadResult.%0A     */%0A    public GamepadResult filter(GamepadResult toFilter)%7B%0A        double lx = deadzone(toFilter.getLeftX());%0A        double ly = deadzone(toFilter.getLeftY());%0A        double rx = deadzone(toFilter.getRightX());%0A        double ry = deadzone(toFilter.getRightY());%0A        return new GamepadResult(lx,ly,rx,ry);%0A    %7D%0A    %0A    private double deadzone(double value)%7B%0A        if(Math.abs(value)%3C=deadzone)%7B%0A            return 0;%0A        %7D%0A        return value;%0A    %7D%0A%7D%0A

Add DeadzoneFilter to apply a deadzone to a GamepadResult object.