Configure (mayflash) joystick
  • First of all. Thanks for this great effort of building an old school game machine.
    I started it this week on a brand new pi and had fun with it. I got very enthousiastic and decided to buy the recommended MayFlash joystick (http://www.mayflash.com/Products/PCUSB/PC042.html). Now I got it, I do not know how to activate/configure it. Can anybody give me any clues of how/where to start activating/configuring my MayFlash joystick?
  • If it isn't working, i found pressing both the clear and auto button at the same time gets the joystick to register.
  • That was the golden tip. Thank you. This wonderful oldschool joystick now works with a couple of emulators, except for mame4all. Does anybody have a new tip for this piplay mayflash adventure story? In other words: how/where do I configure/activate a joystick (mayflash) for pimame? Thx
  • I mean advancemame. I do not use mame4all yet
  • I figured it out (by browsing in de Forum ;-)
    To configure the joystick I added some code to the advmame.rc file (in the directory home/pi/.advance/
    At the end of this file are the inputs for the functions. I added the joystick-variables:

    input_map[p1_up] keyboard[1,scan0] or keyboard[0,8_pad] or keyboard[0,up] or keyboard[1,scan0] or joystick_digital[0,1,1,1]
    input_map[p1_down] keyboard[1,scan0] or keyboard[0,2_pad] or keyboard[0,down] or keyboard[1,scan0] or joystick_digital[0,1,1,0]
    input_map[p1_right] keyboard[1,scan0] or keyboard[0,6_pad] or keyboard[0,right] or keyboard[1,scan0] or joystick_digital[0,1,0,0]
    input_map[p1_left] keyboard[1,scan0] or keyboard[0,4_pad] or keyboard[0,left] or keyboard[1,scan0] or joystick_digital[0,1,0,1]
    input_map[p1_button1] keyboard[1,scan0] or keyboard[0,lcontrol] or joystick_button[0,0]
    input_map[p1_button2] keyboard[1,scan0] or keyboard[0,lalt] or joystick_button[0,1]
    input_map[p1_button3] keyboard[1,scan0] or keyboard[0,space] or joystick_button[0,2]
    input_map[p1_button4] keyboard[1,scan0] or keyboard[0,lshift] or joystick_button[0,3]
    input_map[p1_button5] keyboard[1,scan0] or keyboard[0,z] or joystick_button[0,4]
    input_map[p1_button6] keyboard[1,scan0] or keyboard[0,x] or joystick_button[0,5]
    input_map[p1_button7] keyboard[1,scan0] or keyboard[0,c] or joystick_button[0,6]
    input_map[p1_button8] keyboard[1,scan0] or keyboard[0,5] or joystick_button[0,7]
  • Just wanted to add my thanks for this. I also have a mayflash joystick and was having problems configuring it.

Howdy, Stranger!

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