---------------- JSPIMENU - Quick and dirty bash based joystick menu for pimame. http://jabawok.net/jspimenu
jspimenu was born out of the need to have a keyboardless way to launch emulators on pimame.
Copy this jspimenu directory to /home/pi/ - jstest binary is hardcoded to /home/pi/jspimenu/jstest
jstest.c from linuxconsoletools was modified to include a method of getting a one-time instantanious button status. The "--one" option to jstest is the addition. - usage example: ./jstest --one /dev/input/js0 - help example: ./jstest --help
The entire (compiled) source tree is included, as well as the resulting jstest binary in this directory.
The menu logic in jspimenu.sh should be highly self-explanetory - edit it to suit your needs.
To get jspimenu.sh to launch automatically on pimame, edit /home/pi/.profile and put /home/pi/jspimenu/jspimenu.sh before the menu.py line. -------
oh and another tip for editing your ~/.profile : add a check for $SSH_CONNECTION so that the menu doesnt get launched when you ssh into the rpi. I also have a small sound file getting played back else my projector outputs static on the HDMI input.
Heres the bottom section of my .profile (sorry about the lack of indentation, this forum removes leading whitespace):
if [ -n "$SSH_CONNECTION" ]; then echo "SSH Connection detected..." else # real tty, ie bootup sudo xboxdrv --silent --config /home/pi/pimame_files/xboxdrv_mapping.cfg --dbus session & /home/pi/pimame_files/getip.sh
# play a short sound to stop hdmi noise with dell projector aplay /home/pi/info.wav
/home/pi/jspimenu/jspimenu.sh python /home/pi/pimame_files/menu.py fi
hmm... it seems that you could have just edited the existing pimame menu to accept input from your joystick. But thanks for the script for testing ssh connections. I was actually just getting ready to look that up today! Have any good games running on your pi?