Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Switching controllers? #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.

    monkeyangst
    Participant

    Well, I just don’t know. Now it’s working. Tried a second game, Marvel vs. Capcom, and the second controller worked fine. Went back to Bushido Blade, and it worked there as well. No idea what, if anything, I did differently.

    Thanks for all the responses. I will go ahead and add those lines to retroarch.cfg anyway, then poke around the menus.

    monkeyangst
    Participant

    OK. The Retroarch GUI I haven’t seen. Do I get it by pressing TAB on the keyboard, like in MAME?

    And I will try a different two-player game tonight, to see if it might indeed be the ROM.

    monkeyangst
    Participant

    [quote=18791]Hmm, so all p1 controls work in the Playstation emulator? Double check all p2 buttons are functioning:

    jstest /dev/input/js1

    I haven’t played any 2 player Playstation games but check there isn’t an option to enable 2 player in the Retroarch GUI, add this to retroarch.cfg:

    input_menu_toggle =

    (enabled via hotkey)
    [/quote]

    Thanks! I have checked it out in jstest, and it comes up fine. I’m interested in the second thing you said, though, can you expand on it a bit?

    monkeyangst
    Participant

    Sure. The following is the contents of /opt/retropie/configs/all/retroarch.cfg:

    system_directory = /home/pi/RetroPie/BIOS
    config_save_on_exit = false
    video_aspect_ratio = 1.33
    video_smooth = false
    video_threaded = true
    input_enable_hotkey = escape
    input_exit_emulator = escape
    rewind_enable = false
    rewind_buffer_size = 10
    rewind_granularity = 2
    input_rewind = r
    video_gpu_screenshot = true
    input_shader_next = m
    input_shader_prev = n
    video_shader_dir = /opt/retropie/emulators/RetroArch/shader/
    
    input_enable_hotkey_btn = "8"
    input_exit_emulator_btn = "9"
    input_player1_joypad_index = "0"
    input_player1_b_btn = "2"
    input_player1_y_btn = "3"
    input_player1_select_btn = "8"
    input_player1_start_btn = "9"
    input_player1_up_axis = "-1"
    input_player1_down_axis = "+1"
    input_player1_left_axis = "-0"
    input_player1_right_axis = "+0"
    input_player1_a_btn = "1"
    input_player1_x_btn = "0"
    input_player1_l_btn = "4"
    input_player1_r_btn = "5"
    
    input_player2_joypad_index = "1"
    input_player2_b_btn = "1"
    input_player2_y_btn = "4"
    input_player2_select_btn = "5"
    input_player2_start_btn = "2"
    input_player2_up_axis = "-1"
    input_player2_down_axis = "+1"
    input_player2_left_axis = "-0"
    input_player2_right_axis = "+0"
    input_player2_a_btn = "0"
    input_player2_x_btn = "3"
    input_player2_l_btn = "6"
    input_player2_r_btn = "7"
    
    monkeyangst
    Participant

    Yeah, mostly, although now that I think about it, there is at least one game in SNES — Super Mario World — that the second controller doesn’t seem to be recognized in. When playing 2-player mode, we have to pass the first controller back and forth.

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