Skip to content

Instantly share code, notes, and snippets.

@fahdfady
Last active May 7, 2025 19:47
Show Gist options
  • Select an option

  • Save fahdfady/617b0c78087488fd1441e682f3867784 to your computer and use it in GitHub Desktop.

Select an option

Save fahdfady/617b0c78087488fd1441e682f3867784 to your computer and use it in GitHub Desktop.
ChatGPT 4o helped my fix my joystick drift problem .. hope it helps.

The issue you're describing—stick drift on the L3 (left analog stick) when you push it to the right and release—is common in analog joysticks due to wear, dust, or calibration issues. Since it's a Redragon USB joystick, here are some steps you can take to troubleshoot and potentially fix it:


✅ 1. Check Raw Input via Gamepad Tester

  • Go to https://gamepad-tester.com/
  • Move the stick to the right and release it.
  • See if the stick visually returns to center or if the X-axis value stays off-center.

If the values don't return to 0, the joystick is registering input when it shouldn't—classic drift.


🔧 2. Software Calibration (Windows)

Try recalibrating the controller in Windows:

  1. Open Control PanelDevices and Printers.
  2. Right-click on the joystick → Game controller settings.
  3. Select the device → PropertiesSettingsCalibrate.
  4. Follow the wizard to recalibrate.

After that, test again using Gamepad Tester.


🧼 3. Clean the Joystick Mechanism

Stick drift can also be caused by dust or debris. Try this carefully:

  • Unplug the joystick.

  • Use a can of compressed air or isopropyl alcohol (90%+) with a cotton swab or dropper.

  • Gently move the stick to the side and:

    • Spray air around the base of the stick.
    • OR add a small drop of alcohol around the base of the stick and rotate it in circles.
  • Let it dry for a few minutes before plugging it back in.


🧪 4. Use Deadzone Settings (as a workaround)

If cleaning/calibrating doesn't help:

  • In Steam:

    • Big Picture Mode → Controller settings → Adjust deadzone for L3.
  • In emulators or games:

    • Increase the right X-axis deadzone until the drift no longer registers.

🔧 5. Hardware Repair (Last Resort)

If none of the above work, the potentiometer (sensor under the stick) might be worn out.

Options:

  • Open the controller and clean/realign the stick internals.
  • Replace the analog stick module (requires soldering).
  • Replace the whole controller if repair isn't worth the cost.

Would you like me to show you how to adjust deadzones in Steam or any specific game?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment