Arcade controls working in PiPlay but not in AdvMame ROMS
  • Does anyone have any advice on how to get the joystick and buttons recognised in AdvMame? I can navigate the PiPlay menu and select things with joystick and button but even after I've configured the controls in the ROMs they aren't recognised. Details of how I set things up are below. Any advice appreciated.

    I'm using the Adafruit software. ROMs all work using just the keyboard.

    I've tested the controls with a little Python 3 program I wrote and the 4 joystick directions and 4 buttons all work as expected when the GPIO ports are pulled high.

    My Raspbian version is wheezy 7.8.

    I've run sudo apt-get upgrade and updated the software.

    I've installed the programs and libraries to recompile the Adafruit software using

    sudo apt-get install git libexpat1 libexpat1-dev libncurses5 libncurses5.dev.

    When I run this command again the OS reports I have the latest versions of all 5

    components.

    I've installed the Adafruit retrogame software and edited the retrogame.c to match the ports I've used and recompiled the software using the make command without errors.

    I've added the udev rule to ensure compatibility with the SDL2 library. I added a line to the following file

    etc/udev/rules.d/10-retrogame.rules

    The line I added was

    SUBSYSTEM=="input", ATTRS{name}=="retrogame", ENV{ID_INPUT_KEYBOARD}="1"

    I tried to make sure the retrogame program starts as soon as the OS boots by adding the following line just before the exit 0 line of /etc/rc.local

    /home/pi/Adafruit-Retrogame/retrogame &

    The retrogame software is running because I can navigate the PiPlay menu.
  • Don't worry, it's not retrogame. You just need to configure the controls using the controller config. In the piplay main menu, press 'Tab' then scroll down to "controller config". Select the emulator you want to configure (advmame and fba both get configured with 'Arcade').
  • Many thanks for your kind reply. I did try this (I have a Joystick and 5 buttons) but it still doesn't take effect when I start the ROMs up. Do I need to save the configuration somehow? I can't seem to see a save when I've been through the controller config...
  • Sorry trying to type "tab" in angle brackets but it's edited out...

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!