x-arcade dual-joystick setup issues

Home Forums RetroPie Project Everything else related to the RetroPie Project x-arcade dual-joystick setup issues

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 20 replies, has 4 voices, and was last updated by Profile photo of Scott Nath Scott Nath 1 year, 6 months ago.

Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #82528
    Profile photo of Scott Nath
    Scott Nath
    Participant

    Good Evening,

    I am running into an issue getting the x-arcade dual joystick to work with retropie. I have it working correctly with Atari. But only on the left side and it doesn’t seem to be programmed totatally correctly.

    These are the steps I went through:

    Used [this lifehacker article](http://lifehacker.com/how-to-turn-your-raspberry-pi-into-a-retro-game-console-498561192) as my plan of attack.

    started with ExFat formatted sd-card

    1. Downloaded RetroPie Project SD-card Image V2.3
    2. Used RPi-sd card builder v1.2 to extract image to the SD Card
    3. followed lifehacker’s step 2 instructions for sudo raspi-config exactly
    4. went to step 3/sudo ./retropie_setup.sh,

    • installed the binaries first
    • reboot
    • updated setup script
    • reboot
    • 328 setup->Xarcade2Jstick: enabled

    5. emulation station, tried a couple games, didn’t work
    6. sudo ./retropie_setup.sh
    * retroarch controller setup
    7. emulation station, tried a couple games, atari worked mostly, mame did not, nes sorta – with weird button placement

    Can you please tell me what I might have done wrong?
    Is it possible to just drop in .cfg files somewhere?
    Should I expect to have to create different .cfg files for my xarcade dual stick to work with each emulator?

    thank you for any help!
    Scott

    #82530
    Profile photo of Scott Nath
    Scott Nath
    Participant

    A couple addendums:

    two config files?
    There are two cfg files in /opt/retropie/emulators/RetroArch/configs:

    • Xarcade-to-Gamepad-Device.cfg
    • Xarcade-to-GamepadDevice.cfg

    Should those both be in there?

    I tried editing /opt/retropie/configs/all/retroarch.cfg
    I added the items found here:
    http://blog.petrockblock.com/forums/topic/xarcade-usb-keyboard/#post-1659
    but that made no difference at all.

    thanks,
    Scott

    #82536
    Profile photo of thex
    thex
    Participant

    There is a “Xarcade2JStick” in the retropie_setup that you can enable.
    This will map all of the keys.

    Let me know if the trackball works after you enable this.

    #82540
    Profile photo of Scott Nath
    Scott Nath
    Participant

    Yup, that was this line from the first post:

    “328 setup->Xarcade2Jstick: enabled”

    Didn’t help.

    This isn’t the tank, it’s the dual and it doesn’t have the trackball sadly.

    thanks,
    Scott

    #82558
    Profile photo of thex
    thex
    Participant

    Okay – so the Xarcade2Jstick didn’t work for me either. So disabled it then edited /opt/retropie/configs/all/retroarch.cfg.
    I have all of the keys working in all of the emulators. When you run MAME, hit the tab key to access the game menu, and edit the keys there.

    If you would like, I can attach the key mappings from the retroarch.cfg that I made.

    #82559
    Profile photo of Scott Nath
    Scott Nath
    Participant

    Hi Thex, Yes please! Exactly what I’m looking for…

    Thank you, Scott

    #82560
    Profile photo of thex
    thex
    Participant

    Here you go.
    I also included instructions on how I mapped the Player 1 + Player 2 buttons as an exit.

    I made these notes for me so I can repeat them. That is why there is graphics!

    #82628
    Profile photo of Scott Nath
    Scott Nath
    Participant

    Hi Thex,

    Just wanted to drop a line that I’m still working on this. Your .pdf helped a lot.

    FYI,
    * I did a completely new install of RetroPie from the SD Card Image v2.3.
    * I followed the LifeHacker Article steps 1 and 2.
    * Then I ssh’d in and changed /opt/retropie/configs/all/retroarch.cfg to follow your keymap charting exactly like this:

    
    1. Modify the following lines:
    
    input_player1_a = z
    input_player1_b = shift
    input_player1_y = ctrl
    input_player1_x = alt
    input_player1_start = num5
    input_player1_select = c
    input_player1_l = space
    input_player1_r = x
    input_player1_left = keypad4
    input_player1_right = keypad6
    input_player1_up = keypad8
    input_player1_down = keypad2
    
    2. Add the following lines:
    
    input_player2_a = e
    input_player2_b = w
    input_player2_y = a
    input_player2_x = s
    input_player2_start = num6
    input_player2_select = rightbracket
    input_player2_l = q
    input_player2_r = leftbracket
    input_player2_left = d
    input_player2_right = g
    input_player2_up = r
    input_player2_down = f
    

    And that was it.

    I did not install or enable the xarcadetojoystick code. Just changed retroarch.cfg and rebooted.

    Following reboot Atari 2600 worked exactly right. I launched Gauntlet in MAME and it almost all worked except for Player 1’s joystick was not working.

    I ran out of time there. But this week I will be revisiting this and trying games from all the systems I have. I’ll report back here when I have my findings.

    thank you a ton for posting your notes,

    Scott

    • This reply was modified 2 years, 5 months ago by Profile photo of Scott Nath Scott Nath.
    • This reply was modified 2 years, 5 months ago by Profile photo of Scott Nath Scott Nath.
    • This reply was modified 2 years, 5 months ago by Profile photo of Scott Nath Scott Nath.
    #82661
    Profile photo of thex
    thex
    Participant

    Remember, that you have to map the keys in mame using the TAB menu.

    #82663
    Profile photo of Scott Nath
    Scott Nath
    Participant

    I do. thanks.

    Will I have to map any of the other emulators do you think?

    #82679
    Profile photo of thex
    thex
    Participant

    Mame was the only one I had to do. The mapping I gave you work with all of the other emulators that I am using.

    #82680
    Profile photo of Scott Nath
    Scott Nath
    Participant

    What about the ESC key? When I was in Atari I had to hit ESC on the keyboard. Is that correct?

    #82687
    Profile photo of thex
    thex
    Participant

    if you look at the document I gave you, i expalin what i changed in the cfg file to make player 1 + player 2 the new escape key.

    #82692
    Profile photo of Scott Nath
    Scott Nath
    Participant

    Aha. Found it. Thank you.

    #82745
    Profile photo of Scott Nath
    Scott Nath
    Participant

    I got it working! One extra thing is in the MAME general config (hit tab) you also need to program the “UI Cancel” option. It starts out as ESC, but you need to set it to both player buttons so it performs the escape-to-emulationstation functionality.

    Thank you for helping me with your findings Thex – helped a lot.

    I’m curious…what is it that xarcadetojoystick does if it’s not setting this up?

    thanks,
    Scott

    #82752
    Profile photo of thex
    thex
    Participant

    I don’t know. It did work for all of the emulators, except mame and it disabled the trackball. Doing it this way fixed everything for me.

    Glad it is working for you!

    #83417
    Profile photo of Scott Nath
    Scott Nath
    Participant

    FYI…I got two sets of x-arcades working for a total of four players at once!

    I open sourced what I put together:
    https://github.com/scottnath/retropie-with-dual-x-arcades

    thanks again for your help

    scott

    #106079
    Profile photo of mack505
    mack505
    Participant

    I got it working! One extra thing is in the MAME general config (hit tab) you also need to program the “UI Cancel” option. It starts out as ESC, but you need to set it to both player buttons so it performs the escape-to-emulationstation functionality.

    Thank you for helping me with your findings Thex – helped a lot.

    I’m curious…what is it that xarcadetojoystick does if it’s not setting this up?

    thanks,
    Scott

    Thanks Scott! This helped me as well. Question: Can you use 2 keys together for the UI Cancel in the mame config menu?

    #106082
    Profile photo of Scott Nath
    Scott Nath
    Participant

    @mack505 – I never attempted a dual-key setting.

    #106931
    Profile photo of alloca
    alloca
    Participant

    Hello guys and many thanks to you for putting this all together.
    I’m up and running almost perfectly now.

    Only two problems.

    1. I can’t get the exit emulator thing going at all. I’ve edited the to lines as described in the document. But it doesn’t work. Any suggestions?

    2. My xarcade seems to not be working at random times. Sometimes it works from startup and sometimes I have to reconnect it. And sometimes I even have to reboot the whole raspi. Plz help
    My arcade cabinet won’t be very nice if I have to open the whole thing up every time I start it up.

    Please help me you gurus of the Internet

    #107021
    Profile photo of Scott Nath
    Scott Nath
    Participant

    alloca,

    I don’t have any suggestions for exiting the emulator, sorry.

    For the non-working x-arcade – are you using the default set of keys, or did you use a keyboard to change the keys.

    If you changed the button layout, remember that with the x-arcade you need to click the button on the back of the box off and on to set it to the new settings every time the x-arcade loses power. It’s a weird quirk of those joysticks…

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

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

Skip to toolbar