^i am using that i have the 2 bottons and joystick connected correctly to the GPIO pins and i've downloaded the thing from github and have it on my pi, but i dont understand what to do to make it work with Pimame (mame4all)
yes but the instructions are terrible i dont understand what to do, i know what to edit but im using the same setup as adafruit (for now) but i dont understand what to do AFTER you have the ZIP file on your Pi
Zip file? Is this the adafruit file? I unzipped it on my PC (not sure how to do this on RPi via command prompt) and copied the unzipped directory to my RPI, it goes in the Home directory from memory.
I found this thread very helpful. I followed your instructions as well as adafruits instructions and completed all the steps without errors. The controls still dont seem to work in the emulators.
If i type this command: sudo ./retrogame The joystick is showing output and seems to be functioning correctly.
I have triple checked to make sure the line in /etc/rc.local is entered correctly and it persists through reboots.
Any ideas what i could be missing or doing wrong? I have been testing in the advancemame emulator and have checked my emulators input keys to make sure they are correct.
After playing with this a little more this morning I found that the joystick is working in the pimame menu and at the command line but still nothing when advmame is running.
you may need to edit your advmame config files. It sounds like the joystick works, but the keys are mapped wrong. Check your '/home/pi/.advance/advmame.rc' file and make sure that everything is mapped correctly. Also, check to make sure that your mappings aren't doubled anywhere in the file (make sure there is only one entry for [p1_up], [p1_left],[p1_down], etc.) Multiple entries can overwrite each other.
Thanks! That got me a little further. And I'm onto another problem.
I'm not sure if this is the same issue Ajwyant is having, but my joystick runs fine when I run sudo ./retrogame. However, the two buttons won't show any input.
I get ^[[A for up, ^[[B for down, ^[[D for left and ^[[C for right. but when I push the buttons, I get nothing. I even tried to just remove the button and tap the two leads together to see if that would at least generate some output. Still nothing.
I did check advmame.rc and everything is mapped the same for the buttons. Any ideas?
I would double check your retrogame config versus your gpio pins and make sure that you have the correct pins mapped. If you are getting feedback from your joystick, then a bad configuration is most likely your culprit.
@mholgatem - Do you happen to know where a person could download the older Adafruit Retrogame zip package or someone that can share it?
The newer one has some additional code in the retrogame.c for Adafruit's Cupcade and Vulcan Pinch (two-key presses) that requires the ncurses and expat install.
The older version I believe works without the extra install piece but I can't find it anywhere. It looks like it was updated a few months ago on Github to the newer version.
I have the issue that it seems most users have - followed the install etc and got the keyboard presses to work in terminal, but once you launch advmenu/advmame, there is nothing.... It seems to be a problem within those emulators - does anyone have a work around or fix for this?
I used all of the default key mappings from advmame, so didn't change anything. I did read another post somewhere that if you unplug the usb keyboard, that the joystick commands will then work. I will try that approach tomorrow and see how it goes.
Hi i created a profile simple to ask on this thread. i get up to the stage where i have edited the retrogame c file and try to use make but i keep getting the message make: *** No rule to make target 'retrogame'. stop