Switching controllers?

RetroPie has a new website and forum. Please visit https://retropie.org.uk/ for the new site. The new forum is located at https://retropie.org.uk/forum/. This forum is left here as a read-only archive.

This topic contains 3 replies, has 2 voices, and was last updated by Profile photo of trimmtrabb trimmtrabb 2 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #19261
    Profile photo of monkeyangst
    monkeyangst
    Participant

    OK, I think I’ve finally got my two controllers working properly, and I know, in general, how to configure them in all three places I need to — MAME, Retroarch, and Emulation Station.

    Now, it occurs to me that these configuration files are fine if you plan to keep the same controller or two plugged in all the time — but what if you want to switch out controllers? Let’s say I wanted to use a Nintendo-like controller for NES games, but a PS1-style controller for PSX games, or maybe my girlfriend wants to bring over her own… you see what I’m getting at. Is there a way to maintain a “library” of controller configurations and swap between them? (I imagine a shell script could do most of the work; I’m just wondering if there’s a built-in solution.)

    #19262
    Profile photo of trimmtrabb
    trimmtrabb
    Participant

    If you place a retroarch.cfg in the relevant folders under /opt/retropie/configs/ it will override the default retroarch.cfg in /configs/all/

    For example edit a retroarch.cfg for a SNES/NES pad and place it in /configs/nes/

    If you have found the solution to your problem please mark the topic as resolved.

    #19267
    Profile photo of monkeyangst
    monkeyangst
    Participant

    Thank you very much, that’s certainly helpful.

    Now I have a second, related question: The designation of controllers as /dev/input/js0 and /dev/input/js1 — where does that come from? Is it based on the order in which they are connected, or what USB port they’re in, or what?

    Basically, I’d like to try to set up a situation in which I unplug a controller and plug in a different one, and the system recognizes it and applies the right configuration. First of all, I need to figure out how it’s seeing the controllers in the first place.

    #19280
    Profile photo of trimmtrabb
    trimmtrabb
    Participant

    If you’re using one type of pad at a time for a specific emulator the suggestion above will work, with one pad plugged in it will always be assigned js0

    If you have found the solution to your problem please mark the topic as resolved.

Viewing 4 posts - 1 through 4 (of 4 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar