Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #19261
    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
    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/

    #19267
    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
    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Everything else related to the RetroPie Project’ is closed to new topics and replies.