Homepage › Forums › RetroPie Project › Everything else related to the RetroPie Project › Can\'t find the right directory › Reply To: Can\'t find the right directory
Alright that worked good!
So to summarize if you want to add gamepad exit, follow these steps:
1) Have pi plugged in and running.
2) Connect to it over your network, I used filezilla with the SFTP (ssh protocol). To obtain your pi ip address, just exit out of Emulation Station and it will tell you at the prompt what it’s IP address is.
3) Login as user ‘pi’ (def password is raspberry). {Note that in order to overwrite the CFG file I actually had to login as ROOT, so if you get unable to write errors on the CFG file, just login as ROOT}
4) Browse to folder ‘/opt/retropie/configs/all’
5) Copy the ‘retroarch.cfg’ file to your computer, so you can edit it
6) Add the following two lines, substituting the appropriate button numbers for your gamepad (on my logitech USB gamepad, it’s 6 & 7)
input_enable_hotkey_btn = 6
input_exit_emulator_btn = 7
Note that when you wish to exit the emulator, you would hold the ‘hotkey’ button and press the ‘exit_emulator’ button, for example, hold select and press start.
7) Use filezilla and upload that file back to ‘/opt/retropie/configs/all’ (again if it doesn’t let you overwrite, login as root)
8) Reboot the PI and enjoy the easy exit button!