• 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

Here is a way to select joystick for players 1-4 (global or emu specific)

Scheduled Pinned Locked Moved Help and Support
retroarchinputcontrollerjoystickjoypad index
154 Posts 28 Posters 133.5k 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.
  • B
    BuZz administrators
    last edited by 27 Jul 2016, 12:54

    Please can you give me the output of udevadm info /dev/input/js0 (the device which isn't really a joystick on your setup.

    To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

    1 Reply Last reply Reply Quote 0
    • M
      meleu @BuZz
      last edited by 27 Jul 2016, 13:56

      @BuZz said in Here is a way to select input for RetroArch players 1-4:

      you can now place scripts at /opt/retropie/configs/all/runcommand-onstart.sh and /opt/retropie/configs/all/runcommand-onend.sh

      Wow! Those Puss'in'Boots eyes are really useful! Thanks man!

      @BuZz said in Here is a way to select input for RetroArch players 1-4:

      Please can you give me the output of udevadm info /dev/input/js0 (the device which isn't really a joystick on your setup.

      Here it go:

      [prompt]$ udevadm info /dev/input/js0
      P: /devices/platform/lis3lv02d/input/input10/js0
      N: input/js0
      E: DEVNAME=/dev/input/js0
      E: DEVPATH=/devices/platform/lis3lv02d/input/input10/js0
      E: ID_INPUT=1
      E: ID_INPUT_ACCELEROMETER=1
      E: ID_PATH=platform-lis3lv02d
      E: ID_PATH_TAG=platform-lis3lv02d
      E: MAJOR=13
      E: MINOR=0
      E: SUBSYSTEM=input
      E: USEC_INITIALIZED=233075
      
      • Useful topics
      • joystick-selection tool
      • rpie-art tool
      • achievements I made
      1 Reply Last reply Reply Quote 0
      • B
        BuZz administrators
        last edited by 27 Jul 2016, 15:10

        I have pushed an update that should ignore this device now in the config editor (hopefully).

        To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

        M 1 Reply Last reply 28 Jul 2016, 10:10 Reply Quote 1
        • M
          meleu @BuZz
          last edited by 28 Jul 2016, 10:10

          @BuZz said in Here is a way to select input for RetroArch players 1-4:

          I have pushed an update that should ignore this device now in the config editor (hopefully).

          Yeah! Worked here!

          I've noticed a little issue... My joystick_selection.sh utility puts an #include at the beggining of the global retroarch.cfg, then its users won't see the changes made by the configedit.sh.

          I'm gonna change my joystick_selection.sh to do the same way configedit.sh does: change input_playerN_joypad_index directly in retroarch.cfg. Then both utilities can manage the same data harmoniously.

          Later we have to think in a way to check the precedences...

          • Useful topics
          • joystick-selection tool
          • rpie-art tool
          • achievements I made
          1 Reply Last reply Reply Quote 0
          • M
            meleu @BuZz
            last edited by meleu 28 Jul 2016, 10:22

            @BuZz said in Here is a way to select input for RetroArch players 1-4:

            @meleu said in Here is a way to select input for RetroArch players 1-4:

            @BuZz
            Another improvement suggestion:
            After setting the controllers for, let's say, NES, I go to the ...nes/retroarch.cfg and the input_playerN_joypad_index variables are after that #include for global configs. Which means that the global config allways takes precedence over the specific config.

            BTW again: your configedit.sh made me realize the usefulness of inifuncs.sh. Really cool!

            They should go before the include. I'll check

            I think I know what hapenned here...

            When the system specific retroarch.cfg have no input_playerN_joypad_index entry, the iniSet (actually iniProcess at this line) puts it at the end of the file.

            • Useful topics
            • joystick-selection tool
            • rpie-art tool
            • achievements I made
            1 Reply Last reply Reply Quote 0
            • B
              BuZz administrators
              last edited by 28 Jul 2016, 10:48

              It's a bug for a few custom configedit functions. Will sort.

              To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

              1 Reply Last reply Reply Quote 1
              • B
                BuZz administrators
                last edited by 28 Jul 2016, 10:59

                should be fixed.

                To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                1 Reply Last reply Reply Quote 0
                • S
                  skrapps914
                  last edited by 31 Jul 2016, 02:36

                  i have a weird issue with this. or at least i think it is this script. whenever i install it, my gba emulator stops working. it wont load any games. i only believe its this giving lr-gpsp an issue, because ive installed it, and gba wont load, i formatted the card, gba worked again, installed the controller script again, and gba stopped working. i checked the runcommand log for the error report, but the runcommand log is blank.

                  M 1 Reply Last reply 31 Jul 2016, 12:15 Reply Quote 0
                  • M
                    meleu @skrapps914
                    last edited by meleu 31 Jul 2016, 12:15

                    @skrapps914
                    Thanks for your feedback. It gave me the idea to create an uninstall procedure.

                    I can't see how the script can do this. But if you want to disable it to check if it really is the reason, you can delete the #include line at the beggining of /opt/retropie/configs/all/retroarch.cfg.

                    • Useful topics
                    • joystick-selection tool
                    • rpie-art tool
                    • achievements I made
                    S 2 Replies Last reply 31 Jul 2016, 20:00 Reply Quote 0
                    • S
                      skrapps914 @meleu
                      last edited by 31 Jul 2016, 20:00

                      @meleu said in Here is a way to select input for RetroArch players 1-4:

                      @skrapps914
                      Thanks for your feedback. It gave me the idea to create an uninstall procedure.

                      I can't see how the script can do this. But if you want to disable it to check if it really is the reason, you can delete the #include line at the beggining of /opt/retropie/configs/all/retroarch.cfg.

                      thanks for your reply and help. I went and removed the code, and lr-gpsp still wont work, perhaps it was something else that's causing it, and not this as suspected. i'm stuck without a clue as to why it will work, and then stop working once i installed the controller scrip though. maybe there was something else updating in the background, like the retropie script or something... i'm gonna format the card again, and try again, see if i can track it down

                      E 1 Reply Last reply 31 Jul 2016, 21:14 Reply Quote 1
                      • E
                        edmaul69 @skrapps914
                        last edited by edmaul69 31 Jul 2016, 21:14

                        @skrapps914 why reformat? Did you try going into retro-pie setup and reinstall the emulator? Which emulator are you using. Have you tried the other emulator?

                        S 1 Reply Last reply 31 Jul 2016, 21:17 Reply Quote 0
                        • S
                          skrapps914 @edmaul69
                          last edited by 31 Jul 2016, 21:17

                          @edmaul69 yeah, ive tried uninstalling, reinstalling the emulator, and it wont work. it works when i reformat, but then i run updates..and it stops.. but not sure what update is killing it

                          1 Reply Last reply Reply Quote 0
                          • S
                            skrapps914 @meleu
                            last edited by 4 Aug 2016, 17:54

                            @meleu hey, just wondering any plan to add an image/icon for this in the retropie setup selection? if not, is it easy to make my own and add it?

                            M 1 Reply Last reply 4 Aug 2016, 18:28 Reply Quote 0
                            • M
                              meleu @skrapps914
                              last edited by 4 Aug 2016, 18:28

                              @skrapps914 said in Here is a way to select input for RetroArch players 1-4:

                              @meleu hey, just wondering any plan to add an image/icon for this in the retropie setup selection? if not, is it easy to make my own and add it?

                              It's easy to add it. But if it is easy to make your own depends on your artistic skills. :-)

                              I would like to add an image there, but I don't have enough proficiency with CG softwares...

                              Actually I would love to see what @Rookervik or @lilbud can do in this regard, but I don't have enough intimacy to ask them for it... :-)

                              • Useful topics
                              • joystick-selection tool
                              • rpie-art tool
                              • achievements I made
                              R S 2 Replies Last reply 4 Aug 2016, 18:59 Reply Quote 0
                              • R
                                Rookervik Global Moderator @meleu
                                last edited by 4 Aug 2016, 18:59

                                @meleu Er? I don't really know what kind of icon you're needing haha. Some sort of icon for setting up controllers for RetroArch? I've just redone all the icons for the retropie menu but haven't had any feedback so that project is on hold for the moment.

                                M 1 Reply Last reply 4 Aug 2016, 19:17 Reply Quote 0
                                • M
                                  meleu @Rookervik
                                  last edited by meleu 8 Apr 2016, 20:18 4 Aug 2016, 19:17

                                  @Rookervik
                                  This isn't an "official" tool, but some users are enjoying it.

                                  It's a tool to configure the joystick input for RetroArch players 1-4. Not to configure the buttons, it's just what controller will control the players 1-4.
                                  https://github.com/meleu/RetroPie-joystick-selection

                                  After the installation, the tool is launchable at RetroPie menu and it has a description.

                                  I was thinking on a image with 4 mini-joysticks on the left and 4 numbered retroarch-space-invaders-like symbols on the right and some scrambled lines connecting each other side. Or something like that... But If you want to honor us with an image, I trust in your artistic skills, do as you want!

                                  • Useful topics
                                  • joystick-selection tool
                                  • rpie-art tool
                                  • achievements I made
                                  L 1 Reply Last reply 4 Aug 2016, 19:28 Reply Quote 0
                                  • L
                                    lilbud @meleu
                                    last edited by lilbud 8 Apr 2016, 21:03 4 Aug 2016, 19:28

                                    @meleu How about this?

                                    undefined

                                    Creator of the Radiocade: https://retropie.org.uk/forum/topic/6077/radiocade

                                    Backlog: http://backloggery.com/lilbud

                                    R M 3 Replies Last reply 4 Aug 2016, 19:36 Reply Quote 3
                                    • R
                                      Rookervik Global Moderator @lilbud
                                      last edited by 4 Aug 2016, 19:36

                                      @lilbud Looks good, but I'd remove the numbers. That'd make a great icon.

                                      L 1 Reply Last reply 4 Aug 2016, 20:02 Reply Quote 0
                                      • M
                                        meleu @lilbud
                                        last edited by meleu 8 Apr 2016, 20:50 4 Aug 2016, 19:46

                                        @lilbud Thanks!

                                        I was thinking in something to refer to the possibility of reordering.

                                        • Useful topics
                                        • joystick-selection tool
                                        • rpie-art tool
                                        • achievements I made
                                        1 Reply Last reply Reply Quote 0
                                        • L
                                          lilbud @Rookervik
                                          last edited by 4 Aug 2016, 20:02

                                          @Rookervik Fixed It

                                          Creator of the Radiocade: https://retropie.org.uk/forum/topic/6077/radiocade

                                          Backlog: http://backloggery.com/lilbud

                                          R 1 Reply Last reply 4 Aug 2016, 21:07 Reply Quote 0
                                          51 out of 154
                                          • First post
                                            51/154
                                            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