Homepage › Forums › RetroPie Project › Controller Configuration in RetroPie › branch of mk_arcade_joystick_rpi (dedicated hk button)
- This topic has 10 replies, 3 voices, and was last updated 9 years, 1 month ago by efraimsangil.
-
AuthorPosts
-
11/15/2015 at 16:18 #109967AnonymousInactive
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?11/17/2015 at 20:15 #110133AnonymousInactivei have installed it but jsest does not show me 9th button, and i can’t configure it on emulationstation. Someon can help me?
11/18/2015 at 22:10 #110209phoenixParticipantI 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.
11/19/2015 at 21:34 #110269AnonymousInactivetnx 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
11/21/2015 at 17:50 #110409efraimsangilParticipantI 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 :-/
11/23/2015 at 20:47 #110533AnonymousInactivehi 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 };
11/24/2015 at 09:30 #110567efraimsangilParticipantOk, 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? :)
11/24/2015 at 16:32 #110588AnonymousInactiveyou 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?)11/24/2015 at 17:11 #110592efraimsangilParticipantI 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).
11/24/2015 at 18:50 #110608AnonymousInactiveyes 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.
11/24/2015 at 19:18 #110614efraimsangilParticipantJejejeje, 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.