hizzlekizzle / RetroArch-AppImage

An attempt to use CI for nightly builds of RetroArch for Windows and Linux (via AppImage)
https://retroarch.com/
MIT License
13 stars 8 forks source link

SDL2: Improper mapping of input_r_y_plus_axis or input_r_y_minus_axis for Sony DualSense disrupts keyboard functionality for SDL2 #9

Open davidhedlund opened 9 months ago

davidhedlund commented 9 months ago

Description

When using the SDL2 joypad driver with a DualSense controller in the RetroArch AppImage, the controller behaves erratically and interferes with keyboard functionality. This issue does not occur with the Flatpak version or with other controllers like the Nintendo Switch Pro Controller.

Steps to Reproduce

Part 1

To address the issue with the DualSense controller, revert to the previous autoconfig file for the PS5 Controller. The problematic configuration is caused by either or both of these lines:

input_r_y_plus_axis = "+3"
input_r_y_minus_axis = "-3"

Commenting out one of these lines may not resolve the issue, as the presence of either can trigger the bug.

Important Note

It's worth noting that I have submitted an updated autoconfig file to prevent this problem with DualSense controllers in the future. However, the unexpected behavior where improper mapping causes the keyboard to stop functioning is a separate concern that requires further investigation.

Part 2

Method 1

  1. Launch RetroArch AppImage
  2. Change "Settings -> Drivers -> Controller" from "udev" (default) to "sdl2"
  3. Main Menu -> Restart RetroArch -- required for the controller driver to take effect
  4. Connect a DualSense controller via USB or Bluetooth
  5. Attempt to use the controller in RetroArch

Method 2

  1. Connect a DualSense controller via USB or Bluetooth
  2. Launch RetroArch AppImage
  3. Change "Settings -> Drivers -> Controller" from "udev" (default) to "sdl2"
  4. Main Menu -> Restart RetroArch -- required for the controller driver to take effect
  5. Attempt to use the controller in RetroArch

Expected Behavior

The DualSense controller should function normally, allowing for proper input and configuration.

Actual Behavior

Still Functional:

Method 1

Issues:

vokoscreenNG-2024-08-03_04-06-07.webm

Method 2

Issues:

Environment

Additional Information

Video Evidence

[Link to video demonstrating the issue]

References

  1. PR correcting Product ID for SDL2/DualSense: https://github.com/libretro/retroarch-joypad-autoconfig/pull/1115

Possible Related Issues

Any assistance in resolving this issue would be greatly appreciated.

hizzlekizzle commented 9 months ago

I can't reproduce the problem of sdl2 controller driver reverting to udev on a fresh appimage download.

davidhedlund commented 9 months ago

I can't reproduce the problem of sdl2 controller driver reverting to udev on a fresh appimage download.

Thank you for testing it.

davidhedlund commented 9 months ago

I tested it in Trisquel 11. Which distro did you test it in?

hizzlekizzle commented 9 months ago

Ubuntu Mate 23.10 (edited; forgot I updated my system)

davidhedlund commented 4 months ago

I can't reproduce the problem of sdl2 controller driver reverting to udev on a fresh appimage download.

Ubuntu Mate 23.10 (edited; forgot I updated my system)

Apparently this bug is caused by an autoconfig file for DualSense. I rewrote the top post from scratch.