RetroPie-Setup/scriptmodules/supplementary/runcommand
cmitu ba2092df74 runcommand: auto-load SDL2 gamecontroller mappings
Added the ability for `runcommand` to load the SDL2 gamecontroller mappings created from the EmulationStation mappings and expose them as a SDL2 hint. Since the user may already have a mechanism to set the hint (from `.bashrc`/`.profile` or perhaps as part of the on-start scripts), don't overwrite the SDL2 hint if exists.

NB: since 2.0.22 the file containing the mappings can be set through the `SDL_HINT_GAMECONTROLLERCONFIG_FILE`, but to accomodate older SDL2 version, we're using `SDL_HINT_GAMECONTROLLERCONFIG` as a hint, which contains the actual mapping strings separated by newlines.
2025-02-19 16:28:31 +00:00
..
runcommand.sh runcommand: auto-load SDL2 gamecontroller mappings 2025-02-19 16:28:31 +00:00