Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #86305
    m312
    Participant

    I really have no idea what I’m doing wrong here. Only tested on SNES, but not managed to get Player 2 working.

    Player 1 works fine.

    Tested using jstest and evtest and all buttons for both controllers work fine, and inputs are correct.

    What am I doing wrong here?

    This is my retroarch setup:

    # Enable input auto-detection. Will attempt to autoconfigure
    # joypads, Plug-and-Play style.
    input_autodetect_enable = false
    # If desired, it is possible to override which joypads are being used for user 1 through 8.
    # First joypad available is 0.
    input_player1_joypad_index = 0
    input_player2_joypad_index = 0
    # Joypad buttons.
    # Figure these out by using RetroArch-Phoenix or retroarch-joyconfig.
    # You can use joypad hats with hnxx, where n is the hat, and xx is a string representing direction.
    # E.g. "h0up"
    input_player1_a_btn = 11
    input_player1_b_btn = 13
    input_player1_y_btn = 12
    input_player1_x_btn = 10
    input_player1_start_btn = 15
    input_player1_select_btn = 14
    input_player1_l_btn = 17
    input_player1_r_btn = 16
    
    input_enable_hotkey_btn = 14
    input_exit_emulator_btn = 15
    
    # input_player1_left_btn = -2
    # input_player1_right_btn = +2
    # input_player1_up_btn = -3
    # input_player1_down_btn = +3
    # input_player1_l2_btn =
    # input_player1_r2_btn =
    # input_player1_l3_btn =
    # input_player1_r3_btn =
    
    input_player2_a_btn = 1
    input_player2_b_btn = 4
    input_player2_y_btn = 5
    input_player2_x_btn = 0
    input_player2_l_btn = 2
    input_player2_r_btn = 3
    # input_player2_left_btn =
    # input_player2_right_btn =
    # input_player2_up_btn =
    # input_player2_down_btn =
    
    # Axis for RetroArch D-Pad.
    # Needs to be either '+' or '-' in the first character signaling either positive or negative direction of the axis, then the axis number.
    # Do note that every other input option has the corresponding _btn and _axis binds as well; they are omitted here for clarity.
    input_player1_left_axis = -2
    input_player1_right_axis = +2
    input_player1_up_axis = -3
    input_player1_down_axis = +3
    
    input_player2_left_axis = +1
    input_player2_right_axis = -1
    input_player2_up_axis = +0
    input_player2_down_axis = -0

    Thank you in advance

    #86306
    m312
    Participant

    OK, strange one here…

    Player2 seems to work now if Player1 Y button is held down…

    So if I hold down Player 1 Y, the joystick and buttons for Player2 become active. If Player 1 Y is not held down, nothing.

    #86329
    dpicc68
    Participant

    Ok… You should read some posts regarding configuring controllers….

    First run RetroArch game pad setup.. Youtube setting up Retropie 2.3…

    Then edit the cfg file….

    The lines should read —

    input_player1_a_btn=11

    This is if button 11 (jstest) is going to be used as ‘a’.
    So no #… Button value is after ‘=’

    Hope this helps.

    Dpicc….

    #86330
    dpicc68
    Participant

    Also checkout

    tht tht arcade 2 player usb controller

    Dpicc….

    #86344
    m312
    Participant

    Hi dpicc,

    Appreciate the reply.

    I’m pretty sure I’ve done all of that.
    Run the setup, edited the cfg file.
    No # symbols for the buttons I am using and button value after ‘=’

    I’ve seen your post as well, fixing the issues with mame4pi and PiFBA, but not using those roms yet. Just trying to get Retroarch to run properly.

    Will use when I’ve sorted retroarch though!

    Any other suggestions?
    Does my code look right?

    #87515
    ghog45
    Participant

    m312,

    I copied what you put in the config and I can’t get any of them to work but the mame. I am very new at this so I am sorry for copying your work I am just getting very upset. What I am I missing?

    #87639
    grimwreeper
    Participant

    My config looks very similar to yours, with 2 exceptions:

    1. I Have quotes around all my axis & btn configs:
    input_player2_a_btn = "1"

    2. I have commented out this line like this for player one, I’m not sure why it works (Maybe it defaults to 0 for player 1 or something), but it does for me:
    #input_player1_joypad_index = 0
    for player 2 is left uncommented as you have above.

    Only other thing I can think of is make sure your paths in es_systems.cfg is correct and loading the correct retroarch config for the emulator you’re trying to use.

    #87805
    m312
    Participant

    Hi ghog,

    I’ve got mine working with the code above now.

    The issue was the software. 2.4 just doesn’t work. 2.3 does though.

    Try again with an earlier version of retropie and hopefully more luck.

    Also your ‘numbers’ are likely to be different.

    Search for a jstest to work out what number each of your buttons are and to see whether it is even recognised correctly.

    #87806
    ghog45
    Participant

    Cool thanks man will work on it this weekend

    #87877
    daveireland20
    Participant

    Hi guys. Having the exact same issue myself, the code above is identical to mine and I’ve had no joy with the two player configuration. Strange thing is anytime I add in either “player1” or “player2” into the commands both joysticks and all buttons cease to work. If the player commands are removed it all works again. I’ve checked every resource available about configuring the second controller and have yet to find anything that’s done the job. Should add that although the buttons and joystick fail to work retro arch is reading the correct file as the hotkey and select button setup I have to exit from the emulator works regardless of the “player” inserts. :S

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