Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • regulus
    Participant
    Post count: 3

    Hello,

    I am attempting to configure a Logitech dual action game pad using the retroarch-joyconfig utility in a RetroPie v2.2 system. Everything appears to go smoothly in the configuration process. However, when I play a game nothing appears mapped correctly. The up and down buttons map to start and select. The 1 and 2 buttons map to D-Left and D-Right. Am I not writing to the correct retroarch.cfg file location? I believe the retroarch.cfg that came with the disk image is in the /opt/retropie/emulators/RetroArch/ directory.

    aornn
    Participant
    Post count: 55

    same probleme with ps3 controller i can’t play with …

    imrhien
    Guest
    Post count: 908

    Hi all,

    I am experiencing the same thing.

    You can manually edit the config via ftp. It’s in /opt/ somewhere (am not at my system currently).

    I just can’t figure out the buttons :-S

    aornn
    Participant
    Post count: 55

    what is the file ?

    Imrhien
    Guest
    Post count: 908

    The config file for ALL Retroarch emulators is here:
    /opt/retropie/configs/all/retroarch.cfg

    To run the controller config from the command line, input the following:

    sudo chown pi /opt/retropie/configs/all/retroarch.cfg
     cd /opt/retropie/emulators/RetroArch/installdir/bin
     sudo ./retroarch-joyconfig -j 1 >> /opt/retropie/configs/all/retroarch.cfg

    I will be testing this myself soon.

    Imrhien
    Guest
    Post count: 908

    Yep, that worked for me. I had to make one change:

    
    sudo chown pi /opt/retropie/configs/all/retroarch.cfg
     cd /opt/retropie/emulators/RetroArch/installdir/bin
     sudo ./retroarch-joyconfig -j <strong>0</strong> >> /opt/retropie/configs/all/retroarch.cfg

    The number in bold is the id of the gamepad. 0 is the first gamepad attached. Not sure if the keyboard counts as a second gamepad.

    After doing this you’ll still want to edit the file over FTP because it doesn’t let you define buttons to exit the emulator!

    Imrhien
    Guest
    Post count: 908

    Sorry, here’s that revised script again, outside CODE tags because it displays wrong.

    sudo chown pi /opt/retropie/configs/all/retroarch.cfg
    cd /opt/retropie/emulators/RetroArch/installdir/bin
    sudo ./retroarch-joyconfig -j 0 >> /opt/retropie/configs/all/retroarch.cfg

    Imrhien
    Guest
    Post count: 908

    Don’t forget to add this to your config afterwards:

    input_enable_hotkey_btn = “6”
    input_exit_emulator_btn = “7”
    input_enable_hotkey_btn = “6”
    input_save_state_btn = “4”
    input_enable_hotkey_btn = “6”
    input_load_state_btn = “5”

    On my controller this adds the following inputs:
    Exit Emulator: Select + Start
    Save State: Select + L1
    Load State: Select + R1

    regulus
    Participant
    Post count: 3

    This did not work for me. The script works, but when I play a game the buttons are still mapped incorrectly. I will see if I can manually edit the retroarch.cfg file instead.

    flipbug
    Participant
    Post count: 47

    try:

    sudo ./retroarch-joyconfig -j 0 >> /opt/retropie/configs/all/retroarch.cfg

    and

    sudo ./retroarch-joyconfig -j 1 >> /opt/retropie/configs/all/retroarch.cfg

    regulus
    Participant
    Post count: 3

    It turns out the retroarch.cfg file included two sets of button assignments and RetroArch was using the first. I manually deleted the first set of assignments and now everything works like it should.

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.