Page 1 of 1

Buttons for fba2x.cfg (Pifba)

Posted: Fri Jan 19, 2018 3:41 pm
by Kharmeleon
Hi there, i've built a MintyPi v2 this week and i wanted to know how i have to edit the opt/retropie/emulators/pifba/fba2x.cfg to play Neo Geo games with Pifba emulator properly. What i found out so far about how the GPIO-buttons are linked to letters on a keyboard:

L = A
R = S
Up = [[A
Down = [[B
Left = [[D
Right = [[C
Y = X
X = Z

Has anyone to offer the layout or a hint for the missing buttons and which digits i have to insert for the Mintypi button layout. I was wondering if anybody could share his fba2x.cfg file with me.

I'm not able to play Neo Geo games right now, because i have the wrong button input in the cfg file. :(


Here is what the fba2x.cfg says:

[Keyboard]
# Get codes from /usr/include/SDL/SDL_keysym.h
A_1=306
B_1=32
X_1=308
Y_1=304
L_1=122
R_1=120
START_1=13
SELECT_1=9
LEFT_1=276
RIGHT_1=275
UP_1=273
DOWN_1=274
QUIT=27
#player 2 keyboard controls, disabled by default
A_2=999
B_2=999
X_2=999
Y_2=999
L_2=999
R_2=999
START_2=999
SELECT_2=999
LEFT_2=999
RIGHT_2=999
UP_2=999
DOWN_2=999

[Joystick]
# Get codes from "jstest /dev/input/js0"
# from package "joystick"
# Defaults to XBOX 360 Controller
A_1=1
B_1=0
X_1=2
Y_1=3
L_1=4
R_1=5
START_1=7
SELECT_1=6
#Joystick axis
JA_LR=0
JA_UD=1
#player 2 button configuration
A_2=1
B_2=0
X_2=2
Y_2=3
L_2=4
R_2=5
START_2=7
SELECT_2=6
#Joystick axis
JA_LR_2=0
JA_UD_2=1
#player 3 button configuration
A_3=1
B_3=0
X_3=2
Y_3=3
L_3=4
R_3=5
START_3=7
SELECT_3=6
#Joystick axis
JA_LR_3=0
JA_UD_3=1
#player 4 button configuration
A_4=1
B_4=0
X_4=2
Y_4=3
L_4=4
R_4=5
START_4=7
SELECT_4=6
#Joystick axis
JA_LR_4=0
JA_UD_4=1

[Graphics]
DisplaySmoothStretch=1
# Display Effect: 0 none, 1 scanlines
DisplayEffect=0
DisplayBorder=0
MaintainAspectRatio=1
DisplayAutoRotate=0

[Sound]



I would very much appreciate your help! Thank you very much in advance!

Re: Buttons for fba2x.cfg (Pifba)

Posted: Fri Jan 19, 2018 6:48 pm
by Helder
Here you go all set for the mintyPi which works rather well with this emulator.

Re: Buttons for fba2x.cfg (Pifba)

Posted: Sat Jan 20, 2018 2:39 am
by Kharmeleon
Helder wrote:
Fri Jan 19, 2018 6:48 pm
Here you go all set for the mintyPi which works rather well with this emulator.
Great Helder! Many thanks for that file. Btw i like your PCB set very much. It works like a charm :D

You say that the Pifba emu works rather well. That's funny because i've read in the wiki that it would work much better with pi zero than others would do. That's why i chose it. So which one would you suggest i should use and where do i have to put the rom files to work with that emulator?

I have encountered another problem. With the bios set i have the sprites are not shown correctly or there ar missing certain colors for example. It looks awful. I've tried many bioses before but all the others did not even work. :(

Again thank you very much for your help.

Re: Buttons for fba2x.cfg (Pifba)

Posted: Sat Jan 20, 2018 1:15 pm
by Helder
I use the CPS1 and CPS2 roms mainly the Capcom arcade roms and they go in the FBA folder. Neo Geo also works with this emulator but you neo geo bios zip file to have them load games.

Audio needs to be working or the emulator crashes on bootup.