kryptalivian
Posts: 22
Joined: Thu Apr 09, 2015 6:14 pm

PS3 controller config for MAME and FBA

Thu Nov 12, 2015 9:42 pm

Could someone please assist me in setting a button to the insert coin hotkey.

I was thinking about using the PlayStation Button in the middle of the controller. How do I know which number refers to which button on the controller.

Thanks,

CJ

saulart
Posts: 2
Joined: Thu Mar 19, 2015 5:14 pm

Re: PS3 controller config for MAME and FBA

Fri Dec 04, 2015 10:24 am

Install the system Recalbox and be happy!

Neil Munday
Posts: 109
Joined: Tue Mar 18, 2014 8:52 pm
Location: UK
Contact: Website

Re: PS3 controller config for MAME and FBA

Mon Dec 07, 2015 7:21 pm

Hi,

If you install the "jstest" utility then you can find out the button and axis IDs and values.

E.g.

Code: Select all

jstest /dev/input/js0
Press Ctrl + C to exit the program.

If it helps, the PS button is button number 16.

Cheers,

Neil.
http://pes.mundayweb.com -> The Pi Entertainment System for all your gaming needs

User avatar
Jako
Posts: 34
Joined: Fri Jul 06, 2012 8:02 am
Location: My owner's garage

Re: PS3 controller config for MAME and FBA

Mon Dec 07, 2015 9:29 pm

This is my working config for FBA

Code: Select all

[Joystick]
# Get codes from "jstest /dev/input/js0"
# from package "joystick"
JA_LEFT_1=7
JA_RIGHT_1=5
JA_UP_1=4
JA_DOWN_1=6
A_1=15
B_1=12
X_1=14
Y_1=11  
L_1=10
R_1=13
START_1=3
SELECT_1=0
#Joystick axis
JA_LR_1=0
JA_UD_1=1
#player 2 button configuration
JA_LEFT_2=7
JA_RIGHT_2=5
JA_UP_2=4
JA_DOWN_2=5
A_2=15
B_2=11
X_2=13
Y_2=14
L_2=10
R_2=12
START_2=3
SELECT_2=0
#Joystick axis
JA_LR_2=0
JA_UD_2=1
Only Joysticks works for directions :-(

With mame use the TAB key to config, if you use imame4all for example.
Sorry, my english is awful, like me. XD

Return to “Gaming”