reicast: change input mapping scripts and simplify launch script - #2992
Conversation
…amters from the run script
ea0684e to
be2d1b1
Compare
|
Thanks! |
|
Mapping seems to work great. Thanks. Some unrelated problem to note. Exiting (at least on rpi4) with start and select causes a crash. I will debug this. Theres a couple of minor issues I noticed but again unrelated to this. I'm happy to.merge. thanks! |
|
The crash happens when exiting during a game. It's ok when hitting tab to access in the game menu. Just mentioning here as I'm thinking maybe while what looks like a lot of changes have been happening, maybe we should revert to an older version. This was mentioned before by one of the RetroPie devs (maybe you)? If we did would this controller change be affected? I didn't check the history yet to see what was changed when. |
|
The changes in the controller handling (referenced in my commit message) were done 1 year ago and there have been quite a lot of changed until May/June when activity kind of stopped. The mapping script from ES doesn't seem to work - there's quite a difference between what is generated by the joystick mapping script from Reicast and what is generated after ES auto-configuration. |
|
It worked for my controller at least enough that I didn't notice. There's a bunch of problems outside of this - I'm inclined to move it to experimental. Lr-flycast and redream are also available now. Do you want me to merge this for now or hold on? |
|
Let's hold on for a bit, I'll take a closer look at ES's mapping script for |
|
I've taken a look at the Looking at how the buttons are mapped, it assumes the Here's 2 examples with the output from a
For the 1st case, the script creates a correct mapping, but for the 2nd it doesn't. It also ignores the hat input types, so in the 2nd case (the Sony controller) it doesn't map the D-Pad buttons at all ( I think the auto-mapping can be fixed, but it needs an |
|
Update the status and also added the note about the limitations preventing - right now - a reliable auto-configuration method using the EmulationStation SDL scancodes or input indexes. |
|
Thanks. We can revisit the mapping issues later. |
…ial characters when generating sanitizing filenames (/, \, and *) RetroPie#2992 references this commit in reicast: skmp/reicast-emulator@8b5c2a3#diff-b3f91e0a878ca6a79689c44f6b0e14f1e4d9d01e664190a41f5ee15f18c35adaR140-R150 which is used as the reference for which additional characters to sanitize
…ial characters when generating sanitizing filenames (/, \, and *) RetroPie#2992 references this commit in reicast: skmp/reicast-emulator@8b5c2a3#diff-b3f91e0a878ca6a79689c44f6b0e14f1e4d9d01e664190a41f5ee15f18c35adaR140-R150 which is used as the reference for which additional characters to sanitize
…ial characters when generating sanitizing filenames (/, \, and *) RetroPie#2992 references this commit in reicast: skmp/reicast-emulator@8b5c2a3#diff-b3f91e0a878ca6a79689c44f6b0e14f1e4d9d01e664190a41f5ee15f18c35adaR140-R150 which is used as the reference for which additional characters to sanitize
…ial characters when generating sanitizing filenames (/, \, and *) RetroPie#2992 references this commit in reicast: skmp/reicast-emulator@8b5c2a3#diff-b3f91e0a878ca6a79689c44f6b0e14f1e4d9d01e664190a41f5ee15f18c35adaR140-R150 which is used as the reference for which additional characters to sanitize
…ial characters when generating sanitizing filenames (/, \, and *) RetroPie#2992 references this commit in reicast: skmp/reicast-emulator@8b5c2a3#diff-b3f91e0a878ca6a79689c44f6b0e14f1e4d9d01e664190a41f5ee15f18c35adaR140-R150 which is used as the reference for which additional characters to sanitize
…ial characters when generating sanitizing filenames (/, \, and *) RetroPie#2992 references this commit in reicast: skmp/reicast-emulator@8b5c2a3#diff-b3f91e0a878ca6a79689c44f6b0e14f1e4d9d01e664190a41f5ee15f18c35adaR140-R150 which is used as the reference for which additional characters to sanitize
…ial characters when generating sanitizing filenames (/, \, and *) RetroPie#2992 references this commit in reicast: skmp/reicast-emulator@8b5c2a3#diff-b3f91e0a878ca6a79689c44f6b0e14f1e4d9d01e664190a41f5ee15f18c35adaR140-R150 which is used as the reference for which additional characters to sanitize
Reicast input handling has been problematic for quite some time. It looks like it's the result of 2 commits:
.cfgfiles are named.Instead of relying on the
input:evdev_...CLI parameters, the configuration is loaded from theapi_<controller_filtered_name>files, where<controller_filtered_name>is produced bymake_mapping_filename.The current configuration scripts (both from EmulationStation and Reicast) create the configuration files as
controller_<gamepad_name_without_spaces>, which are not loaded by the Reicast's current version.This PR changes the names of the
.cfgfile produced by the Reicast (auto)configuration and removes the input mapping from the emulator's starting script (not needed anymore).Credit goes to user rejesterd, which analyzed this in https://retropie.org.uk/forum/topic/24544.
EDIT: the auto-configuration script called from EmulationStation doesn't reliably create a correct auto-configuration file for
reicast, however SDL doesn't export any API to get theevdevevent codes so we can't resolve this at the moment without modifying EmulationStation and SDL.