ps3 controller problems in mame

Home Forums RetroPie Project Everything else related to the RetroPie Project ps3 controller problems in mame

RetroPie has a new website and forum. Please visit for the new site. The new forum is located at This forum is left here as a read-only archive.

This topic contains 0 replies, has 1 voice, and was last updated by Profile photo of tochumascao tochumascao 2 years, 6 months ago.

Viewing 1 post (of 1 total)
  • Author
  • #81766
    Profile photo of tochumascao

    Hi! need help, I am trying to configure my controls to mame ps3 by usb in RetroPie v2.3, me in the other emulators work fine, but do not get mame to work. follow the instructions below:

    “sudo nano /opt/retropie/emulators/mame4all-pi/src/rpi/minimal.cpp

    Comment out lines 168 to 174 so that the code appears as

    // if (SDL_JoystickNumAxes(myjoy) > 6)
    // {
    // SDL_JoystickClose(myjoy);
    // myjoy=0;
    // logerror(“Error detected invalid joystick/keyboard\n”);
    // break;
    // }
    If you are having difficulty editing the file, then you can find an amended copy at this post at the Retropie forum to overwrite your existing copy.

    Save and exit.

    Recompile by going to the mame4all directory

    cd /opt/retropie/emulators/mame4all-pi/

    and running the following command.


    but I get the following error when compiling:

    src/rpi/minimal.cpp:130:19: warning: ‘context’ defined but not used [-Wunused-variable]
    src/rpi/minimal.cpp:131:30: warning: ‘nativewindow’ defined but not used [-Wunused-variable]
    Makefile:75: recipe for target 'obj_mame_rpi/rpi/minimal.o' failed
    make: *** [obj_mame_rpi/rpi/minimal.o] Error 1
    pi@raspberrypi /opt/retropie/emulators/mame4all-pi $

    any idea how to fix it?

    • This topic was modified 2 years, 6 months ago by Profile photo of tochumascao tochumascao.

Viewing 1 post (of 1 total)

Forums are currently read only - please visit the new RetroPie forums at

Skip to toolbar