• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Controller (auto?) config question

Scheduled Pinned Locked Moved Help and Support
configs
7 Posts 2 Posters 906 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    DetroitKp
    last edited by 19 May 2019, 13:17

    Raspberry pi 3 model b
    IPAC 4
    Occasional usb controller
    Updated RetroPie software
    Using lr-mame2003 and lr-fbalpha

    This is probably a really dumb question, but I had my iPac controls all perfectly configured in opt/retropie/configs/all/retroarch.cfg (I had player 1 and 2 control info sorted and at the top, etc). I then added a usb controller - and while it didn’t remap the keystroke designations, it added a ton of other commands to my config folder that weren't there before (players 5-16, light gun references, changed the sorting, etc). Is this normal? Was it a result of some auto config setting that I can disable if I reinstall backup folder and add usb in future?

    Thanks!

    M 1 Reply Last reply 19 May 2019, 13:38 Reply Quote 0
    • M
      mitu Global Moderator @DetroitKp
      last edited by 19 May 2019, 13:38

      @DetroitKp Did you use 'Save Configuration' or did you enable 'Save Config on Exit' in RetroArch ? That's how you usually end up with a cluttered retroarch.cfg (which is not the controller auto-configuration location).

      D 1 Reply Last reply 19 May 2019, 16:58 Reply Quote 0
      • D
        DetroitKp @mitu
        last edited by 19 May 2019, 16:58

        @mitu My ipac modifications were manually configured on my computer. Config_save_on_exit is set to false. When I plug in usb controller for first time it messes up my folder and adds a bunch of crap. Certain keystrokes designations also will not work when usb controller is plugged (p for pause and exit/escape key). If I unplug usb controller and restart ES, the keyboard controls work again.

        M 1 Reply Last reply 19 May 2019, 17:48 Reply Quote 0
        • M
          mitu Global Moderator @DetroitKp
          last edited by 19 May 2019, 17:48

          @DetroitKp said in Controller (auto?) config question:

          When I plug in usb controller for first time it messes up my folder and adds a bunch of crap

          What exactly does it add ? Just plugging in the controller doesn't create any file or modify any file.

          If I unplug usb controller and restart ES, the keyboard controls work again.

          It's probably because the controller takes over as P1, so the keyboard doesn't function as P1 anymore. If you want the controller to be P3, then you need to configure it.

          D 1 Reply Last reply 20 May 2019, 00:04 Reply Quote 0
          • D
            DetroitKp
            last edited by 19 May 2019, 19:06

            Here is pre-usb config: https://pastebin.com/f0rgJnGG

            After I plug in usb: https://pastebin.com/smpASXFa

            After I plug in usb, my dedicated escape, pause, and tab buttons no longer work. Usb controller must be taking over player 1 and enabling the hotkey?

            Do I need to modify these?

            input_player1_joypad_index = 0

            input_player2_joypad_index = 1

            input_player3_joypad_index = 2

            input_player4_joypad_index = 3

            Note, I generally don't mess with RetroArch GUI at all. Do I need to bind controllers, etc? I figured I could do everything manually in the retropie/configs/all/retroarch.cfg.

            Thanks!

            1 Reply Last reply Reply Quote 0
            • D
              DetroitKp @mitu
              last edited by 20 May 2019, 00:04

              @mitu I changed this from true to false. Maybe this will let me configure a controller and add the preferences manually.
              input_autodetect_enable = “false”

              M 1 Reply Last reply 20 May 2019, 02:23 Reply Quote 0
              • M
                mitu Global Moderator @DetroitKp
                last edited by 20 May 2019, 02:23

                @DetroitKp The 2nd config you posted (corresponding to the USB controller being plugged in) is a full RA config, that is produced when you save the config from the GUI (or enable saving on exit).
                Are you sure it's the same file you're posting ? I don't think there's any mechanism in RetroPie to switch those files depending on the controllers used. Maybe the 1st file is the one from /opt/retropie/configs/all and the 2nd one from the /opt/retropie/configs/arcade ?

                When you configure a controller, Emulationstation will create a controller configuration file in /opt/retropie/configs/all/retroarch-joypads with the button mappings, and that's all.

                Your configuration steps are fine, and to choose what player the controller gets assigned, you indeed have to set input_playerX_joypad_index. So 1st controller would have the index 0, assigning it to P3 would be

                input_player3_joypad_index = 0
                

                etc.

                You can leave input_autodetect_enable to true , otherwise the auto-config mapping for the controller would not be loaded.

                I would check where the 2nd file is coming from and if it's from the /opt/retropie/configs/arcade folder, you should reset it to default:

                # Settings made here will only override settings in the global retroarch.cfg if placed above the #include line
                
                input_remapping_directory = "/opt/retropie/configs/arcade/"
                
                #include "/opt/retropie/configs/all/retroarch.cfg"
                
                1 Reply Last reply Reply Quote 0
                7 out of 7
                • First post
                  7/7
                  Last post

                Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.

                  This community forum collects and processes your personal information.
                  consent.not_received