Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMPORTANT] Document that input_device is utilized by the android, and sdl2 controller drivers #16920

Closed
davidhedlund opened this issue Aug 23, 2024 · 2 comments

Comments

@davidhedlund
Copy link
Contributor

Description

The input_device is utilized by the udev and linuxraw controller drivers, while input_vendor_id and input_product_id are not used by these drivers. Conversely, the input_vendor_id and input_product_id are used by the Android and SDL2 controller drivers, where input_device is not utilized. This discrepancy is highlighted in the related issue #16904.

Expected behavior

The "Save Controller Profile" feature should not add input_device to the autoconfig file when using Android or SDL2 drivers.

Actual behavior

Currently, "Save Controller Profile" adds input_device to the autoconfig file, which is unnecessary for Android and SDL2 drivers.

Steps to reproduce the bug

  1. Navigate to: Settings -> Drivers -> Controller.
  2. Change the controller driver to "android" or "sdl2".
  3. Restart RetroArch to apply the setting.
  4. Navigate to: Settings -> Input -> RetroPad Binds -> Port 1 Controls.
  5. Click on "Save Controller Profile".
  6. Close RetroArch.

Example of a Sony DualSense generated file called "PS5 Controller.cfg":

input_driver = "sdl2"
input_device = "PS5 Controller"
input_vendor_id = "1356"
input_product_id = "3302"
  1. Open RetroArch. It will pop-up: "PS5 Controller configured on port 1"
  2. Close RetoArch
  3. Rename "PS5 Controller.cfg" to "test.cfg" and delete "input_device" from it
input_driver = "sdl2"
input_vendor_id = "1356"
input_product_id = "3302"
  1. Open RetroArch again. It still displays: "PS5 Controller configured on port 1", indicating that input_device is redundant.

Version/Commit

  • RetroArch: 1.19.1 flatpak
@davidhedlund davidhedlund changed the title [IMPORTANT] Unnecessary is input_device in autoconfig files generated by the android, and sdl2 controller drivers [IMPORTANT] Unnecessary input_device in autoconfig files generated by the android, and sdl2 controller drivers Aug 23, 2024
davidhedlund added a commit to davidhedlund/retroarch-joypad-autoconfig that referenced this issue Aug 23, 2024
Unnecessary input_device in autoconfig files generated by the android, and sdl2 controller drivers - libretro/RetroArch#16920
davidhedlund added a commit to davidhedlund/retroarch-joypad-autoconfig that referenced this issue Aug 23, 2024
Unnecessary input_device in autoconfig files generated by the android, and sdl2 controller drivers - libretro/RetroArch#16920
davidhedlund added a commit to davidhedlund/retroarch-joypad-autoconfig that referenced this issue Aug 23, 2024
Unnecessary input_device in autoconfig files generated by the android, and sdl2 controller drivers - libretro/RetroArch#16920
davidhedlund added a commit to davidhedlund/retroarch-joypad-autoconfig that referenced this issue Aug 23, 2024
Unnecessary input_device in autoconfig files generated by the android, and sdl2 controller drivers - libretro/RetroArch#16920
davidhedlund added a commit to davidhedlund/retroarch-joypad-autoconfig that referenced this issue Aug 23, 2024
Unnecessary input_device in autoconfig files generated by the android, and sdl2 controller drivers - libretro/RetroArch#16920
davidhedlund added a commit to davidhedlund/retroarch-joypad-autoconfig that referenced this issue Aug 23, 2024
Unnecessary input_device in autoconfig files generated by the android, and sdl2 controller drivers - libretro/RetroArch#16920
davidhedlund added a commit to davidhedlund/retroarch-joypad-autoconfig that referenced this issue Aug 23, 2024
Unnecessary input_device in autoconfig files generated by the android, and sdl2 controller drivers - libretro/RetroArch#16920
davidhedlund added a commit to davidhedlund/retroarch-joypad-autoconfig that referenced this issue Aug 23, 2024
Unnecessary input_device in autoconfig files generated by the android, and sdl2 controller drivers - libretro/RetroArch#16920
davidhedlund added a commit to davidhedlund/retroarch-joypad-autoconfig that referenced this issue Aug 23, 2024
Unnecessary input_device in autoconfig files generated by the android, and sdl2 controller drivers - libretro/RetroArch#16920
davidhedlund added a commit to davidhedlund/retroarch-joypad-autoconfig that referenced this issue Aug 23, 2024
Unnecessary input_device in autoconfig files generated by the android, and sdl2 controller drivers - libretro/RetroArch#16920
@zoltanvb
Copy link
Contributor

zoltanvb commented Sep 3, 2024

SDL joypad driver seems to handle name along with vendor / product IDs:

input_autoconfigure_connect(

Android also fills the name, it even has some extra processing for that field:

input_autoconfigure_connect(

These drivers are operating the same way as udev in #16904, adding all possible identification info for the structure, so it seems to be correct.

@davidhedlund davidhedlund changed the title [IMPORTANT] Unnecessary input_device in autoconfig files generated by the android, and sdl2 controller drivers [IMPORTANT] Document that input_device is utilized by the android, and sdl2 controller drivers Sep 4, 2024
davidhedlund added a commit to davidhedlund/retroarch-joypad-autoconfig that referenced this issue Sep 4, 2024
davidhedlund added a commit to davidhedlund/retroarch-joypad-autoconfig that referenced this issue Sep 4, 2024
davidhedlund added a commit to davidhedlund/retroarch-joypad-autoconfig that referenced this issue Sep 4, 2024
davidhedlund added a commit to davidhedlund/retroarch-joypad-autoconfig that referenced this issue Sep 4, 2024
davidhedlund added a commit to davidhedlund/retroarch-joypad-autoconfig that referenced this issue Sep 4, 2024
davidhedlund added a commit to davidhedlund/retroarch-joypad-autoconfig that referenced this issue Sep 4, 2024
davidhedlund added a commit to davidhedlund/retroarch-joypad-autoconfig that referenced this issue Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants