-
AuthorPosts
-
AnonymousInactive11/15/2015 at 16:18Post count: 8
Hi all, in the official wiki https://github.com/RetroPie/RetroPie-Setup/wiki is not mentioned how to config GPIO for home made arcade controller.
I was fallowing the mk_arcade_joystick_rpi howto (https://github.com/RetroPie/RetroPie-Setup/wiki).
I have seen now exist a branch that support one dedicated button for hotkey.
Can i install this and use with retropie or is not officialy supported?AnonymousInactive11/17/2015 at 20:15Post count: 8i have installed it but jsest does not show me 9th button, and i can’t configure it on emulationstation. Someon can help me?
I have used Adafruit’s Retrogame, the mk_arcade_joystick, and GPioneer. for arcade builds that are wired directly to the GPIO.
Of the three, GPioneer is BY FAR the easiest to install, configure, and change. It was built for piPlay, but it is perfectly compatible with Retropie.
The advantages are you don’t have to compile anything, it doesn’t matter what GPIO input you use for each button/control, and you can change the assignments using a web-based interface.
AnonymousInactive11/19/2015 at 21:34Post count: 8tnx Phoenix to share your opinion and your experience. I find mk_arcade_joystick extremely easy too but i don’t understand why the 9th button is not recognised.
This driver is included in other distribution and works immediately, i d like to use this also on retropie
I am checked the source code of mk_arcade_joystick_rpi and it doesn’t exist 9 buttons:
// Map of the gpios : up, down, left, right, start, select, a, b, tr, y, x, tl static const int mk_arcade_gpio_maps[] = {4, 17, 27, 22, 10, 9, 25, 24, 23, 18, 15, 14 };
Recalbox distribution is using an earlier version that exist in github :-/
AnonymousInactive11/23/2015 at 20:47Post count: 8hi efraimsangil, i have cheked the source code too.
https://github.com/recalbox/mk_arcade_joystick_rpi/blob/hotkeybtn/mk_arcade_joystick_rpi.chotkey button is present (row 124)
121 // Map of the gpios : up, down, left, right, start, select, a, b, tr, y, x, tl, hk 122 static const int mk_arcade_gpio_maps[] = {4, 17, 27, 22, 10, 9, 25, 24, 23, 18, 15, 14, 2 };
Ok, I see this link, I say the file is updated 12 days ago.
https://github.com/recalbox/mk_arcade_joystick_rpi/blob/master/mk_arcade_joystick_rpi.c
Your link the file is 4 months ago.
I don’t understand… Whos is the good repository? :)
AnonymousInactive11/24/2015 at 16:32Post count: 8you have linked the original project, i have linked the more recent branch in which 9 puttons are supported for each player . Look at the /master/ vs /hotkeybtn/ on the links.
I don’t know how compile this, (the ./install.sh script is the same on both links, maybe a cut & paste error?)I follow the Manual Installation Steps and work perfectly but when I test de joystick with ‘jstest /dev/input/js0’ only appear 8 buttons, no HK:
Driver version is 2.1.0. Joystick (GPIO Controller 1) has 2 axes (X, Y) and 8 buttons (BtnX, BtnY, BtnTL, BtnTR, BtnTR2, BtnSelect, BtnThumbL, BtnThumbR). Testing ... (interrupt to exit) Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off
I’m using button 6 for START and 7 for CREDITS (SELECT).
AnonymousInactive11/24/2015 at 18:50Post count: 8yes i know, is the reason i have opened this 3d ;)
i have solved right now, you have to recompile it. Download the zip and run the makepackage.sh present on utils directory. Reboot and try again jstes.
Jejejeje, yes!!!
pi@retropie ~ $ jstest /dev/input/js0 Driver version is 2.1.0. Joystick (GPIO Controller 1) has 2 axes (X, Y) and 9 buttons (BtnX, BtnY, BtnTL, BtnTR, BtnTR2, BtnSelect, BtnThumbL, BtnThumbR, ?). Testing ... (interrupt to exit) Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off
You are great! :) Thanks a lot.
-
AuthorPosts
- The forum ‘Controller Configuration in RetroPie’ is closed to new topics and replies.