• 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

When I map player 2's controls it changes player 1's controls?

Scheduled Pinned Locked Moved Help and Support
input issueretropie2 player
8 Posts 4 Posters 8.2k 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.
  • F
    fastrack12003
    last edited by fastrack12003 16 Mar 2017, 00:49

    I am trying to configure a 2 player arcade cabinet with 2 individual usb encoders each one having 1 joy stick and 10 buttons (joy sticks are 4 way, buttons are LED arcade buttons)
    This is on a raspberry pi 3, with pi3 version 4.1, 2.5 amp power supply

    To map the inputs I press start and click configure input.
    Then I hold down a button on one of my inputs and proceed to map all the buttons.
    It appears to work fine until I try and map the other input. As soon as i map the player 2 input, player 1's configuration changes to where my start button is now mapped to a different button and the left and right joy stick mappings get swapped to where when I press right it goes left. and vise versa. So I remapped player 1, and it fixes the issue with player one, but it causes player 2's configuration to be changed to work how player 1's input just was with left being right and right being left and my start button moving to another button (start moves to the same button location on both inputs when it gets scrambled).
    Does anyone have any idea what I can do to get both inputs working correctly?

    M 1 Reply Last reply 16 Mar 2017, 01:29 Reply Quote 0
    • M
      meleu @fastrack12003
      last edited by 16 Mar 2017, 01:29

      @fastrack12003 it seems that both usb encoders have the same name in the system... Can you confirm that?

      If it's the case, I suggest you to hardcode the configs in the /opt/retropie/configs/all/retroarch-joypads/YOUR_JOYPAD_NAME.cfg.

      • Useful topics
      • joystick-selection tool
      • rpie-art tool
      • achievements I made
      F 1 Reply Last reply 29 Mar 2017, 01:29 Reply Quote 0
      • F
        fastrack12003 @meleu
        last edited by fastrack12003 29 Mar 2017, 01:29

        @meleu sorry for the delay, but i finally got around to looking into the directory you mentioned. When i opened it up there is only one .cfg file and one .cfg.bak when i try to edit the .bak file it says its not a file. The one .cfg file is controlling both controllers, but at the same time if i try and map a few buttons on player 2's side while mapping players one controls it doesnt recognize it. When it says to hold down a button to map a controller is apparently sees 2 different controllers be because it says 2 available. Any idea what my be wrong?
        Also i upgraded to retropie 4.2 and still having the same problems

        1 Reply Last reply Reply Quote 0
        • A
          anasazi29
          last edited by 29 Mar 2017, 02:09

          unfortunately this is very common. If you have using exactly the same usb controllers.
          example: I bought a set of these arcade controllers and buttons.
          http://www.ebay.com/itm/DIY-Arcade-Kit-Zero-Delay-USB-Encoder-PC-Joystick-for-MAME-Raspberry-Pi-AC608/232203745491?_trksid=p2045573.c100508.m3226&_trkparms=aid%3D555014%26algo%3DPL.DEFAULT%26ao%3D1%26asc%3D20150817211856%26meid%3D043dcf6bbf0f4199be599876268d49e6%26pid%3D100508%26rk%3D1%26rkt%3D1%26
          You MUST have the wires going to exactly the same set of buttons on both sides. If you setup controls on Player 1 with button A, B, etc. then Player 2's buttons must be going to the same points on the usb encoder board.
          This also happened to 2 USB wired PlayStation 3 controllers. You cannot setup the buttons different from Player 1 compared to player 2. Inside retropie, button A must be on the triangle button on the PS3 controller for both P1 and P2. I could not set them differently under any circumstances.

          M 1 Reply Last reply 29 Mar 2017, 02:31 Reply Quote 0
          • M
            meleu @anasazi29
            last edited by 29 Mar 2017, 02:31

            @anasazi29 said in When I map player 2's controls it changes player 1's controls?:

            You cannot setup the buttons different from Player 1 compared to player 2.

            This is not true. You can manually hardcode the configs in that file I mentioned. Something like this:

            input_player1_joypad_index = 0
            input_player1_b_btn = 2
            input_player1_a_btn = 1
            input_player1_y_btn = 3
            input_player1_x_btn = 0
            input_player1_l_btn = 4
            input_player1_r_btn = 5
            input_player1_start_btn = 9
            input_player1_select_btn = 8
            input_player2_joypad_index = 1
            input_player2_b_btn = 2
            input_player2_a_btn = 1
            input_player2_y_btn = 3
            input_player2_x_btn = 0
            input_player2_l_btn = 4
            input_player2_r_btn = 5
            input_player2_start_btn = 9
            input_player2_select_btn = 8
            
            # Axis for RetroArch D-Pad. 
            # Needs to be either '+' or '-' in the first character signaling either positive or negative direction of the axis, then the axis number. 
            input_player1_up_axis = -1
            input_player1_down_axis = +1
            input_player1_left_axis = -0
            input_player1_right_axis = +0
            input_player2_up_axis = -1
            input_player2_down_axis = +1
            input_player2_left_axis = -0
            input_player2_right_axis = +0
            
            #Hotkeys- Hotkeys enable you to press a combination of buttons to do such things as exit emulators, save states,
            # and load states, as well as any other functionality in an emulator. (In the example below 8 is the select key
            # and 9 is the start key so when I hold down select and press start it will exit the emulator.)
            input_enable_hotkey_btn = 8
            input_exit_emulator_btn = 9
            input_save_state_btn = 5
            input_load_state_btn = 4
            input_menu_toggle_btn = 0
            input_state_slot_increase_axis = +0
            input_state_slot_decrease_axis = -0
            
            • Useful topics
            • joystick-selection tool
            • rpie-art tool
            • achievements I made
            F A 2 Replies Last reply 29 Mar 2017, 03:14 Reply Quote 1
            • F
              fastrack12003 @meleu
              last edited by 29 Mar 2017, 03:14

              @meleu thanks I'll try this tomorrow

              1 Reply Last reply Reply Quote 0
              • A
                anasazi29 @meleu
                last edited by 29 Mar 2017, 17:10

                @meleu no, I completely agree with you. I just meant that you are unable to do it through the GUI controller setup.
                Some people are not comfortable or knowledgeable to edit config files or find them half the time.
                One of the main reasons Retropie is so amazing, is that most of the complexities of it are in the background and most ppl can install and use Retropie without having to learn or do any difficult programming and editing.

                1 Reply Last reply Reply Quote 0
                • L
                  LonestarBarf
                  last edited by LonestarBarf 30 Mar 2017, 23:47

                  This seems the most similar to my issue I've found. What is that editor you are using for the .cfg file? Also, this wouldn't happen to be with DragonRise controllers would it?

                  1 Reply Last reply Reply Quote 0
                  • First post
                    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