libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
10.05k stars 1.81k forks source link

DualSense analog triggers unresponsive in Android RetroArch, PS4 controllers unaffected #16791

Open davidhedlund opened 1 month ago

davidhedlund commented 1 month ago

Description

The Sony DualSense controller's analog triggers (L2/R2) are non-functional in RetroArch for Android. This issue affects pressure-sensitive controls in games and the Remote RetroPad feature. The analog trigger values should range from -10 to +10, but no input is registered regardless of configuration attempts. This problem is specific to the DualSense and does not occur with PS4 controllers.

Expected Behavior

Actual Behavior

Steps to Reproduce

Pre-testing:

  1. Test the L2/R2 triggers in any gamepad testing app outside of RetroArch
  2. Confirm that the analog triggers function correctly in these tests
  3. This verification establishes that the issue is specific to RetroArch and not a hardware problem

RetroArch testing:

  1. Modify the autoconfig file (found in ~/.var/app/org.libretro.RetroArch/config/retroarch/autoconfig/)
  2. Change L2/R2 configuration from buttons to axes:
input_l2_axis = "+1"
input_r2_axis = "+2"
  1. Restart RetroArch and test using "Start Remote RetroPad"
  2. Repeat with different axis values (both positive and negative)

PS4 controller (control)

This section demonstrates that Remote RetroPad is working with L2/R2 analog pressure testing in Android.

RetroArch testing.

  1. Plug a Data Frog P02 controller (a PS4 v1-like controller)
  2. Test the L2/R2 triggers in any gamepad testing app. They are working.
  3. Use the provided autoconfig: https://github.com/libretro/retroarch-joypad-autoconfig/pull/1134/files -- don't forget to enable it by uncomment input_vendor_id and input_product_id
  4. Restart RetroArch and test the analog trigger using "Start Remote RetroPad"
  5. The rectangles on L2/R2 should indicate that they are working

Additional Information

Version Information

Hardware

Sony DualSense Wireless Controller

Notes

davidhedlund commented 1 month ago

Affected Systems and Games

Sega Dreamcast (L/R analog triggers):

Nintendo GameCube (L/R analog triggers):

"1-P Mode -> Training" mode in Super Smash Bros. Melee is an easy way to evaluate the trigger buttons without getting disturbed.

Quick settings