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?
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 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]