Install joystick
  • I received my sanwa joystick today. Connected harness to gpio and powered up RPi B+ hoping to see working stick. Nothing - no joy(stick) whatsoever! I'm guessing that there is something else that I have to do to get it running. Do I need to install or config anything else. Can anybody walk me through details and/or troubleshooting?

    Current setup includes keyboard, joystick, monitor, wifi.

    Thanks -
    David
  • Also, just discovered "tab" to get me to controller setup. I went through arcade but when I move joystick to register up/down/left/right, it doesn't seem to do anything.
  • You need to make sure that you are running a program in the background that will capture the gpio events and turn them into key strokes. Retrogame from Adafruit is pretty much the default (scroll down to the area labeled 'one last piece...')
  • Got it. Installed and having additional issues related to config. I've managed to get joystick working for PiPlay menu and some emulators but not AdvanceMAME. I have looked at advmame.rc and advmess.rc files in /home/pi/.advance folder. advmame.rc has the following:

    input_map[p1_up] keyboard[1,scan0] or keyboard[0,8_pad] or keyboard[0,up] or keyboard[1,scan0]
    input_map[p1_down] keyboard[1,scan0] or keyboard[0,2_pad] or keyboard[0,down] or keyboard[1,scan0]
    input_map[p1_right] keyboard[1,scan0] or keyboard[0,6_pad] or keyboard[0,right] or keyboard[1,scan0]
    input_map[p1_left] keyboard[1,scan0] or keyboard[0,4_pad] or keyboard[0,left] or keyboard[1,scan0]

    advmess.rc includes:
    input_map[p1_up] auto
    input_map[p1_down] auto
    input_map[p1_right] auto
    input_map[p1_left] auto

    So, is there something obviously wrong based on these? Also, what is the relationship between PiPlay controller config (accessed from TAB key in menu) and the .rc files. I'm not sure where I should be looking to fix this. Also, when I run 'sudo ./retrogame' I'm getting what looks like double-entries for each joystick direction
    ^[[B^[[B for a single down action
    This has changed as I was previously getting ^[[B

    I'm new to all of this but slowly working my way through it. Any help you can provide would be appreciated.

    David
  • @dsrichard - it's all good. that's what the forums are for. The advmess.rc is deprecated. we used to use it for emulating nes, but have since moved to fceux. as for your advmame.rc, did you run through the controller config in piplay? (I think that advmame gets set under 'arcade'. Try running through the piplay controller config and see if that works for you.

    As per your question about the relationship between piplay controller config and the configuration files: The configs for the various emulators are scattered here and there, each one with their own unique requirements to get essentially the same values. so the controller config is the go between. it collects your inputs, then accesses the necessary config file, and writes to it according to the format that the configuration file needs.
  • Thanks so much for your help. I'll try again to do the config through the piplay controller.

    Any thoughts on what appears to be the double-input received by joystick actions?
  • The double input is normal. I get that on mine. I think it's because there is probably 2 instances of it running (one in the background, plus the one that you ran from command line). If you set any of your buttons to letters, go to the command line, just press the buttons and you should see just one appear at a time.

    just fyi, I set my 5 of my buttons to 'enter', e,x,i,t. If you have kids that are going to use this, it makes it super easy for them to get back into piplay if you happened to leave it in command line.

Howdy, Stranger!

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