Homepage Forums RetroPie Project Controller Configuration in RetroPie branch of mk_arcade_joystick_rpi (dedicated hk button)

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #109967
    Anonymous
    Inactive

    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?

    #110133
    Anonymous
    Inactive

    i have installed it but jsest does not show me 9th button, and i can’t configure it on emulationstation. Someon can help me?

    #110209
    phoenix
    Participant

    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.

    http://piplay.org/forum/discussion/1891/gpioneer-a-side-project-compatible-with-piplay/p1?post#Form_Body

    #110269
    Anonymous
    Inactive

    tnx 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

    #110409
    efraimsangil
    Participant

    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 :-/

    #110533
    Anonymous
    Inactive

    hi efraimsangil, i have cheked the source code too.
    https://github.com/recalbox/mk_arcade_joystick_rpi/blob/hotkeybtn/mk_arcade_joystick_rpi.c

    hotkey 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 }; 
    
    
    #110567
    efraimsangil
    Participant

    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? :)

    #110588
    Anonymous
    Inactive

    you 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?)

    #110592
    efraimsangil
    Participant

    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).

    #110608
    Anonymous
    Inactive

    yes 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.

    #110614
    efraimsangil
    Participant

    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.

Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘Controller Configuration in RetroPie’ is closed to new topics and replies.