Skip to content

Commit

Permalink
Set RetroArch Input Driver to SDL (#879)
Browse files Browse the repository at this point in the history
* Set RetroArch Input Driver to SDL

Changes RetroArch default Input Driver to SDL. Primarily for ChimeraOS, but seems fine to implement as a general default.

* Change input driver in RA config to sdl

---------

Co-authored-by: Livedeht <[email protected]>
  • Loading branch information
rawdatafeel and Godsbane authored Oct 5, 2023
1 parent ef28cb9 commit 793e2ab
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ input_disk_prev = "nul"
input_disk_prev_axis = "nul"
input_disk_prev_btn = "nul"
input_disk_prev_mbtn = "nul"
input_driver = "x"
input_driver = "sdl"
input_duty_cycle = "3"
input_enable_hotkey = "nul"
input_enable_hotkey_axis = "nul"
Expand Down
12 changes: 11 additions & 1 deletion functions/EmuScripts/emuDeckRetroArch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ RetroArch_init(){
RetroArch_installCores
RetroArch_setUpCoreOptAll
RetroArch_setConfigAll

RetroArch_setupConfigurations
RetroArch_setCustomizations
RetroArch_autoSave
RetroArch_setRetroAchievements
Expand Down Expand Up @@ -154,6 +154,7 @@ RetroArch_update(){
RetroArch_setEmulationFolder
RetroArch_setupSaves
RetroArch_setupStorage
RetroArch_setupConfigurations
RetroArch_installCores
RetroArch_setUpCoreOptAll
RetroArch_setConfigAll
Expand Down Expand Up @@ -189,6 +190,15 @@ RetroArch_setupStorage(){
rsync -a --ignore-existing '/var/lib/flatpak/app/org.libretro.RetroArch/current/active/files/share/libretro/database/cht/' "$storagePath/retroarch/cheats"
}

#SetupConfigurations
RetroArch_setupConfigurations(){

# Set input driver to SDL. X input driver does not seem to work ootb on some non-SteamOS distributions including ChimeraOS.
input_driver='input_driver = '
input_driverSetting="${input_driver}"\""sdl"\"
changeLine "$input_driver" "$input_driverSetting" "$RetroArch_configFile"

}

#WipeSettings
RetroArch_wipe(){
Expand Down

0 comments on commit 793e2ab

Please sign in to comment.