FBA Button config with GBZ

Hardware-related questions that don't fit into any of the specialized hardware categories go here.
Post Reply
User avatar
Boydee
Posts: 50
Joined: Fri Apr 14, 2017 1:44 am
Location: Australia
Has thanked: 4 times
Been thanked: 7 times

FBA Button config with GBZ

Post by Boydee » Thu Jun 01, 2017 2:48 am

Hey guys just finished my first GBZ and I'm trying to set up FBA but the emulator doesn't recognize any key presses, I know i have to edit the config to tell it what keys i want to use in :

Code: Select all

sudo nano /opt/retropie/emulators/pifba/fba2x.cfg
I can see key board setup etc but I'm unsure of what to add or change in here.

Any help would be appreciated
Boydees First GBZ : Here

User avatar
Boydee
Posts: 50
Joined: Fri Apr 14, 2017 1:44 am
Location: Australia
Has thanked: 4 times
Been thanked: 7 times

Re: FBA Button config with GBZ

Post by Boydee » Fri Jun 02, 2017 7:34 pm

So i know performance Isn't the best on the PI ZERO with arcade emulation but I've found a few games that run quite good, some have stuttering sound but are playable.

If anyone is wondering this is how i got FBA working with my GBZ.

First I found out what each of the buttons where assigned to by typing this into a terminal:

Code: Select all

jstest /dev/input/js0
This displays some columns and you can press each button on the GBZ to see what each button is assigned too.

this is how mine were mapped :

Code: Select all

GBZ INPUT

SELECT = 12
START = 4
A = 3
B = 11
X = 5
Y = 7
LS = 10
RS = 8

UP = Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:-32767  8:     0  9:     
DOWN = Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7: 32767  8:     0  9:     
LEFT = Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:-32767  7:     0  8:     0  9:     
RIGHT = :Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6: 32767  7:     0  8:     0  9:     0 
Once I had that I went to :

Code: Select all

sudo nano /opt/retropie/emulators/pifba/fba2x.cfg
In that file there is a section once you scroll down where it says "Defaults to XBOX 360 Controller" I edited that section to my values I had above which looks like this:

Code: Select all

# Get codes from "jstest /dev/input/js0"
# from package "joystick"
# Defaults to XBOX 360 Controller
JA_LEFT_1=7
JA_RIGHT_1=5
JA_UP_1=4
JA_DOWN_1=6
A_1=3
B_1=11
X_1=5
Y_1=7
L_1=10
R_1=8
START_1=4
SELECT_1=12
Note all I changed were the buttons, I didnt edit anything for the dpad.

but once I edited and rebooted it all worked even the dpad with no extra editing.

anyway hope this helps someone.
Boydees First GBZ : Here

8birdman3
Posts: 1
Joined: Mon Apr 30, 2018 3:24 pm

Re: FBA Button config with GBZ

Post by 8birdman3 » Mon Apr 30, 2018 3:28 pm

dude you have to make a video on how you configured it. i know tond of people that are dying to know how in the retropie community.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest