Page 1 of 1

X-Arcade Dual Controller & Retropie

Posted: Tue Feb 19, 2013 8:32 pm
by acott
Has anyone got the X-Arcade dual controller working with RetroPie?

I tried editing retroarch.cfg but its not recognising some of the inputs!
Here's the layout of the controller through pc

http://www.xgaming.com/service/images/L ... Layout.jpg

any help would be greatly appreciated

Re: X-Arcade Dual Controller & Retropie

Posted: Wed Feb 20, 2013 9:39 am
by acott
I came across Sheas Silverman's blog post 'PiMAME, AdvanceMAME, and AdvanceMENU Tankstick Configuration' I decided to get pimame up and running to see if the joystick configuration process would be the same for Retropie.

at first you have to activate the numlock on start, is this possible in retropie? ( I cant find the correct place to do this, and because of this I haven't tried the following )

once thats done you have to add the following to advmame.rc

Code: Select all

input_map[p1_up] keyboard[1,8_pad] or keyboard[0,8_pad] or keyboard[0,up] or keyboard[1,up]
input_map[p1_down] keyboard[1,2_pad] or keyboard[0,2_pad] or keyboard[0,down] or keyboard[1,down]
input_map[p1_right] keyboard[1,6_pad] or keyboard[0,6_pad] or keyboard[0,right] or keyboard[1,right]
input_map[p1_left] keyboard[1,4_pad] or keyboard[0,4_pad] or keyboard[0,left] or keyboard[1,left]
input_map[p1_button1] keyboard[1,lcontrol] or keyboard[0,lcontrol]
input_map[p1_button2] keyboard[1,lalt] or keyboard[0,lalt]
input_map[p1_button3] keyboard[1,space] or keyboard[0,space]
input_map[p1_button4] keyboard[1,lshift] or keyboard[0,lshift]
input_map[p1_button5] keyboard[1,z] or keyboard[0,z]
input_map[p1_button6] keyboard[1,x] or keyboard[0,x]
input_map[p1_button7] keyboard[1,c] or keyboard[0,c]
input_map[p1_button8] keyboard[1,5] or keyboard[0,5]
input_map[start1] keyboard[1,1] or keyboard[0,1]
input_map[start2] keyboard[1,2] or keyboard[0,2]
input_map[coin1] keyboard[1,5] or keyboard[0,5]
input_map[coin2] keyboard[1,6] or keyboard[0,6]
input_map[p2_up] keyboard[1,r] or keyboard[0,r]
input_map[p2_down] keyboard[1,f] or keyboard[0,f]
input_map[p2_right] keyboard[1,g] or keyboard[0,g]
input_map[p2_left] keyboard[1,d] or keyboard[0,d]
input_map[p2_button1] keyboard[1,a] or keyboard[0,a]
input_map[p2_button2] keyboard[1,s] or keyboard[0,s]
input_map[p2_button3] keyboard[1,q] or keyboard[0,q]
input_map[p2_button4] keyboard[1,w] or keyboard[0,w]
input_map[p2_button5] keyboard[1,e] or keyboard[0,e]
input_map[p2_button6] keyboard[1,openbrace] or keyboard[0,openbrace]
input_map[p2_button7] keyboard[1,closebrace] or keyboard[0,closebrace]
input_map[p2_button8] keyboard[1,6] or keyboard[0,6]
input_map[p1_doubleleft_up] keyboard[1,8_pad] or keyboard[0,8_pad]
input_map[p1_doubleleft_down] keyboard[1,2_pad] or keyboard[0,2_pad]
input_map[p1_doubleleft_right] keyboard[1,6_pad] or keyboard[0,6_pad]
input_map[p1_doubleleft_left] keyboard[1,4_pad] or keyboard[0,4_pad]
input_map[p1_doubleright_up] keyboard[1,r] or keyboard[0,r]
input_map[p1_doubleright_down] keyboard[1,f] or keyboard[0,f]
input_map[p1_doubleright_right] keyboard[1,g] or keyboard[0,g]
input_map[p1_doubleright_left] keyboard[1,d] or keyboard[0,d]
Would this joystick configuration work within retroarch.cfg if the numlock key could be activated on start?

I have the X-Arcade up and running in pimame and its brilliant, but id love to have it fully working on the various emulators offered by retropie. Any help would be greatly appreciated!

Re: X-Arcade Dual Controller & Retropie

Posted: Sat Feb 23, 2013 3:34 am
by SSilver2k2
edit /etc/rc.local by typing in sudo nano /etc/rc.local
and include this line before “exit 0″:

for tty in /dev/tty?; do /usr/bin/setleds -D +num < "$tty"; done

then press ctrl-x then y

That will get you numlock on bootup