Skip to content

Conversation

@cmitu
Copy link

@cmitu cmitu commented Jun 28, 2022

Added some extra info to help RetroPie's auto-configuration scripts by exporting the joystick Vendor and Product IDs, which should help with RetroArch's joypad profile generation.

Since 2.0.14, SDL's joystick name (SDL_CreateJoystickName) is a normalized version of the name reported by the OS (culled consecutive spaces, trimming trailing spaces, renaming known joystick names like Xbox/PS). This breaks the input auto-configuration scripts in RetroPie, which generate a config with new name, while the emulators/ports expect to find the OS reported name (e.g. RetroArch - see #3398 [1] for an example).

This issue is affecting especially PC users, which are not using RetroPie's (old) SDL version and who's RetroArch configuration is incomplete.
Using the Vendor/Product ID would help these situations and support the new SDL versions when added to RetroPie.

[1] RetroPie/RetroPie-Setup#3398

 Added some extra info to help RetroPie's auto-configuration scripts by exporting the joystick Vendor and Product IDs, which should help with RetroArch's joypad profile generation.

 Since 2.0.14, SDL's joystick name (`SDL_CreateJoystickName`) is a normalized version of the name reported by the OS (culled consecutive spaces, trimming trailing spaces, renaming known joystick names like Xbox/PS). This breaks the input auto-configuration scripts in RetroPie, which generate a config with new name, while the emulators/ports expect to find the OS reported name (e.g. RetroArch - see #3398 [1] for an example).

 This issue is affecting especially PC users, which are not using RetroPie's (old) SDL version and who's RetroArch configuration is incomplete.
Using the Vendor/Product ID would help these situations and support the new SDL versions when added to RetroPie.

[1] RetroPie/RetroPie-Setup#3398
@cmitu cmitu force-pushed the sdl-vendored-input branch from b6e4c76 to 9473f19 Compare December 22, 2022 05:06
@cmitu cmitu marked this pull request as ready for review December 22, 2022 05:23
@cmitu
Copy link
Author

cmitu commented Dec 22, 2022

I simplified a bit the additions, exporting only the device's vendor and product IDs.
We may enhance this at a later time, but for now it should be enough for fixing RetroArch.

NOTE: I think merging this would break #808, unfortunately.

@joolswills joolswills merged commit 08d74d3 into RetroPie:master Apr 11, 2023
@joolswills
Copy link
Member

Thanks.

fengjixuchui added a commit to fengjixuchui/EmulationStation that referenced this pull request Apr 13, 2023
Merge pull request RetroPie#797 from cmitu/sdl-vendored-input
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

Successfully merging this pull request may close these issues.

2 participants