Emulationstation from batocera with configs and scripts for integration as Arch-Linux package
This project is maintained by GB609
When property hide_mouse is set and unclutter is installed:
-> Add _controls:startUnclutter to _PRE_RUN_OPERATIONS
When executed:
-> fork out unclutter
-> add kill for unclutter’s pid to POST_RUN_ACTIONS
Used to filter a gamecontrollerdb.txt according to the guids and names of controllers assigned to players.
This is a utility function meant to be used from the logic setting up the SDL configuration.
p[1-8]guid and p[1-8]namegamecontrollerdb.txt formatThis function allows to use an external executable to retrieve SDL configuration strings.
The expected executable name is es-sdl and it must be found on PATH.
es-sdl It will be called once per controller and the final concatenated result is printed to stdout.
gamecontrollerdb.txt format$sdl_configWhen the setting controller_profile has any game-, emulator- or system-specific value,
the corresponding profile is normally user-specific and thus part of user saves.
This function assists in creating new profiles, to make sure they are in line with a certain set of required keybinds.
Reason: To ensure that the guide button works uniformly across all apps and games (for os-wide intervention),
it has to be defined in ALL profiles in the same way.
Thus, new profiles should be based on a template, OR be patched afterwards to correct misconfigurations done by the user.
u-game, u-system, u-emuThis function will be called when the property controller_profile is set to any value other than none.
It will evaluate the property value and try to locate the actual profile file. However, the profile will
not be used as is, because we must ensure that the guide button works uniformly across all profiles.
Therefore, a temporary profile will be created, by selectively merging the located target with the GUIDE profile:
GUIDE button in all profile sets with the one from GUIDEES_CACHE_DIR/controller-profiles/
Before an existing file is re-created, a simple check based on modification times is done to make sure there is
unnecessary re-processing that would not have an effect.The merging is not done in bash. It is done by btc-config applyGuideProfile.
Generated with shdoc from /opt/emulatorlauncher/lib/.controls.lib