Joystick Snapback - ZadenRB/OpenGCC_Firmware GitHub Wiki
Overview
Snapback is the result of your joystick overshooting the center point after releasing it. Because a spring pulls the joystick back to center, in practice it oscillates around the center point for a brief period. On some controllers, the overshoot is significant enough that the joystick exits the deadzone on the other side of center. If it is polled at the right time, this can result in an input in the direction opposite of where you released the stick, which is undesirable.
The Snapback Waveform
Here is a map of a joystick's position over time, after being moved up to the top rim of the controller and released, with the gradient representing the passage of time:
Obviously, due to the overlapping measurements, this graph is a bit hard to read. Let's look at just the y-axis value over time:
Here, the snapback is clearly visible. The lines at 104 and 150 represent the edge of Super Smash Bros. Melee's deadzone, 23 units from the center. This graph matches what you would see using a tool like SmashScope's oscilloscope mode.
Causes of Snapback
While all controllers technically experience snapback, it is not always severe enough to actually affect gameplay. If the stick never leaves the deadzone, there will be no negative effect. The severity of snapback (in the case of an OEM controller) depends on both potentiometer degradation and joystick wear. Worn out potentiometers may not properly ready the physical snapback motion, preventing it from being an issue. While more worn joysticks eventually will develop a completely loose area in the center, which makes the physical snapback more severe. For more information, I recommend reading Kadano's guide
Solving Snapback
On OEM controllers, capacitor mods are used to eliminate snapback. The Kadano guide linked above goes into more detail on exact capacitance values. In short, by adding a capacitor on the potentiometer output, we filter out small voltage variations, such as those introduced by snapback. However, having too large of a capacitor will filter out real inputs, so most capacitor mods use switches to connect or disconnect capacitors of different sizes to the potentiometer output.
OpenGCC firmware eliminates snapback in a similar manner, but achieved via software. When an axis crosses the center, the output is held at center for a brief period, with the timer resetting if the axis crosses center again. This prevents oscillations while introducing minimal delay to real inputs.