Here is a way to select joystick for players 1-4 (global or emu specific)
-
@dankcushions
lol, you already replied on the other topic saying something to the effect of "if they use the same VID and PID [as I've stated] nothing can be done". - I'm simply re-stating this is a big deal which effects tons of people (including the ~18 people I've made Pi's for....we recently had to do a bulk shipment of SNES controllers since everybody was buying them on their own and couldn't get them to work together...waste of time, money, and effort). -
@Dochartaigh said in Here is a way to select joystick for players 1-4 (global or emu specific):
@dankcushions
lol, you already replied on the other topic saying something to the effect of "if they use the same VID and PID [as I've stated] nothing can be done". - I'm simply re-stating this is a big deal which effects tons of people (including the ~18 people I've made Pi's for....we recently had to do a bulk shipment of SNES controllers since everybody was buying them on their own and couldn't get them to work together...waste of time, money, and effort).if you give me the lsusb i can see the whole dump of info given by the device. even if pid/vid are the same, maybe the name is different, or at least we can get a documented example of the problem.
also see https://github.com/RetroPie/RetroPie-Setup/issues/1798
anyway, that's the last i read about it on this thread. see you in the other...
-
I've added an option to disable player2-4 (disabling player1 is not a good idea). It fixes an issue reported by @obsidianspider here.
Update your scripts:
git clone https://github.com/meleu/RetroPie-joystick-selection cd RetroPie-joystick-selection bash install.sh
Now I've realized that I need to code an Update procedure for this tool (or better yet, make a RetroPie scriptmodule for it).
Cheers.
-
I've edited the OP with this info about the new installation and update method:
Installation
[26-March-2017] The installation procedure has changed! Now it works as a RetroPie scriptmodule. It has the advantage of having update/remove procedure.
Download the RetroPie scriptmodule:
curl https://raw.githubusercontent.com/meleu/RetroPie-joystick-selection/master/install.sh -o ~/RetroPie-Setup/scriptmodules/supplementary/joystick-selection.sh
And then execute the
retropie_setup.sh
script:sudo ~/RetroPie-Setup/retropie_setup.sh
To install the joystick-selection tool, go to
Manage packages >> Manage experimental packages >> joystick-selection >> Install from source
After that you are ready to use it via RetroPie menu in emulationstation.
Update
After installing, you can update it through RetroPie-Setup. First execute
retropie_setup.sh
script:sudo ~/RetroPie-Setup/retropie_setup.sh
To update the joystick-selection tool, go to
Manage packages >> Manage experimental packages >> joystick-selection >> Update from source
-
@meleu Great work. I'm a big fan of this piece of of software and it has helped me and many others out a lot. Any chance of it becoming part of the RetroPie configuration menu? (EDIT: As a default) It seems like it is something that would be of use.
-
@AlexMurphy said in Here is a way to select joystick for players 1-4 (global or emu specific):
Any chance of it becoming part of the RetroPie configuration menu?
After the new installation method the tool will be available in emulationstation retropie menu and in RetroPie-Setup "Configuration/tools". Is it what you're saying?
-
Hey pixel theme users! @Rookervik created a really cool icon to use as emulationstation icon. I've added it to the repository:
Here is how it looks:
-
The joystick-selection installation script is now part of @zerojay 's RetroPie-Extra repository
-
@meleu I just tried to install this on a new build and it is not working for me. I followed your instructions, downloaded and installed through retropie-setup, everything is great. The only problem is that it doesn't show up on my retropie menu. I have to go into manage packages/manage experimental packages/joystick-selection and then i can open it from there and it works. I took a look at my
~/RetroPie/retropiemenu
folder and it does not show up in there.It does show up in
~/RetroPie-Setup/scriptmodules/supplemenatary
obviously since that is where i can access it from. It is also located in/opt/retropie/supplementary/joystick-selection
just for fun i tried to move joystick-selection.sh to the retropiemenu and open it, it won't function. I then tried the old chmod +x on it, still wont run. I am guessing that it also needs the other parts that are in the folder to work properly.
Any thoughts as to why this won't show up on my retropie menu?
Thanks
-
Sounds like you need to add it to the xml of the retropiemenu. It doesn't work like a ROM where you can just drop it in.. Or maybe it does? Do you have ES set to scan for new ROMs when it loads?
-
@hansolo77 the retropie menu doesn't need a gamelist. I can manually move the script to the retropiemenu and it shows up, the script just doesn't function correctly when i do that.
-
@TMNTturtlguy the instalation through retropie_setup / experimental packages should be enough. Could you try it again?
-
@meleu I just figured it out. It is because i am running off of a usb drive and the retropiemenu folder is on my USB drive, I am guessing that the setup menu is installing it to the SD Card?
-
@meleu confirmed, i tried to reinstall with my USB stick in, did not work. Uninstalled. Removed my USB. Installed again through retropie setup and it is now in my retropie menu. That is running off of the SD card. What do i need to do to allow it to run off of my USB? Thanks
Update: I tired a few things, first i looked at how it worked on the SD card and it was a simple symbolic link from the /opt/ location. So i tried to do this to the USB but it won't allow it. No matter what i try, even sudo will not allow the link. So i just copied the 3 files from the /opt/ location and dumped them into my retropiemenu location on the USB and it works. I can't run an update to this location, from the setup menu, but that is fine.
-
@TMNTturtlguy I'll think on a better solution and let you know when it's ready.
-
@TMNTturtlguy I think I solved your issue. Could you remove those files from retropiemenu and install the tool using the steps I've put on the README?
https://github.com/meleu/RetroPie-joystick-selection/blob/master/README.md#installation -
Changelog
- Installation procedure has changed (some people were having issues with the previous one). The OP and README file were updated accordingly.
- solved the issue when
~/RetroPie
directory is on a partition that doesn't support symbolic links (thanks @TMNTturtlguy for reporting this issue). - added the possibility to invoke the tool in runcommand menu and configure the joystick input for the system that is about to be launched (thanks BuZz for adding such a cool feature on runcommand).
-
@Rion said in Here is a way to select joystick for players 1-4 (global or emu specific):
Looking forward for Joystick support and included in run command before you start a game! :)
More than one year later but this day finally has come! Update the script and you'll get what you want! ;-)
Note: this feature depends on RetroPie 4.2.8+
-
@meleu Thanks for doing this, unfortunately I am once again traveling and don't have my pi. I will test this upon my return in 3 days.
-
@meleu High Five!
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.