What button on the xbox controller is mapped to start the game in Mame? I tried using the keyboard, but it doesn't respond when the xbox controller is attached.
Yep it could be great maybe a little bit complicated... If i'm not wrong all default config for each emulator is keyboard key? It may be easier to uniform these instead? For exemple : 4 buttons, 2L, 2R, start, select and dpad (or analog stick) so 10 keyboard key If all default config can be accessible (like the one for PiFBA) you can have one xboxdrv.cfg (with your main conf) and change all the default one
I hope i was clear... Because it was in my head :-D
So which command i must do to control snes9x? I have to do this once or ever before play? I have to give it ready for use to my mother and i want to prepara only working mame games and SNES. Excuse me for my bad english....
I check piFBA and piSNES and they are similar, so you could try to copy the piFBA keyboard mapping (fba2x.cfg) into piSNES (snes9x.cfg) and normally they will use the same key so your config for xboxdrv should work.
[Keyboard] # Get codes from /usr/include/SDL/SDL_keysym.h A_1=100 B_1=99 X_1=115 Y_1=120 L_1=97 R_1=102 START_1=13 SELECT_1=9 LEFT_1=276 RIGHT_1=275 UP_1=273 DOWN_1=274 QUIT=27
[Joystick] # Get codes from "jstest /dev/input/js0" # from package "joystick" A_1=7 B_1=6 X_1=5 Y_1=4 L_1=3 R_1=2 START_1=1 SELECT_1=17 #Joystick axis JA_LR=1 JA_UD=0
And for Snes home/pi/emulators/pisnes/snes9x.cfg :
[Keyboard] # Get codes from /usr/include/SDL/SDL_keysym.h A_1=100 B_1=99 X_1=115 Y_1=120 L_1=97 R_1=102 START_1=13 SELECT_1=9 LEFT_1=276 RIGHT_1=275 UP_1=273 DOWN_1=274 QUIT=27 ACCEL=8
[Joystick] # Get codes from "jstest /dev/input/js0" # from package "joystick" A_1=7 B_1=6 X_1=5 Y_1=4 L_1=3 R_1=2 START_1=1 SELECT_1=17 #Joystick axis JA_LR=1 JA_UD=0
But with this kind of config ypu have : Light Punch =A // Medium Punch=B // Hard Punch=LB Light Kick=X // Medium Kick=Y // Hard Kick=RB For PiFBA For Snes all buttons work but it's a mess :D (jump=L attack/action=X or A etc...) Also (and i don't know why...) only keyboard works in snes menu.
If someone know how to "increase"... "optimise" (sorry i don't know wich one is better suited for what i mean...) this configuration, i'll take it! But for now, even if in Snes all button are mess up, it works so... that's ok :p
[frontend] #Keyboard controls for frontend only # Get codes from /usr/include/SDL/SDL_keysym.h K_START=13 K_SELECT=53 K_LEFT=276 K_RIGHT=275 K_UP=273 K_DOWN=274 K_A=306 K_QUIT=27 #Joystick controls for frontend only J_SELECT=8 J_A=9 AXIS_LR=0 AXIS_UD=1
Snes cfg:
[Keyboard] # Get codes from /usr/include/SDL/SDL_keysym.h A_1=308 B_1=306 X_1=32 Y_1=304 L_1=53 R_1=49 START_1=13 SELECT_1=112 LEFT_1=276 RIGHT_1=275 UP_1=273 DOWN_1=274 QUIT=27 ACCEL=8