binding keyboard keys to arcade buttons set?

Home Forums RetroPie Project Controller Configuration in RetroPie binding keyboard keys to arcade buttons set?

This topic contains 3 replies, has 2 voices, and was last updated by Profile photo of phoenix phoenix 1 year, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #102829
    Profile photo of lordluca
    lordluca
    Participant

    Hi!

    I built arcade cabinet and hit a brick wall when configuring joystick and buttons…

    Is there a way to bind keyboard keys to buttons?

    I have DragonRise Inc Generic usb joystick controllers, mapped all needed standard buttons in retroarch, but here’s the problem:

    I’d like to use separate button for ‘insert coin’ and in retropie’s mame it’s ‘6’ by default. – so i’d like to map map extra ‘coin button’ to 6.

    I also love pinball dreams on amiga (which uses both shifts) so i’d like to map additional side buttons as ‘shift’ and ‘rshift’

    and i don’t know how to do that… 🙁
    I digged in this forum, search youtube and uncle google but i didn’t find the answer. Can You help my, my friends?

    #105054
    Profile photo of phoenix
    phoenix
    Participant

    I had the same issue. I don’t think you can really bind buttons from your joystick controller to keyboard inputs.

    I have made two different consoles, one with a USB “zero delay” encoder, and one with arcade controls wired directly to the GPIO.

    I added 3 buttons to the first one, (wired direct to the GPIO) and used GPIOneer to map them (one to ESC, one to “5”(coin), and a couple for pinball. GPIOneer has a nice web interface to change them once you have wired them. It is completely compatible with Retropie.
    http://piplay.org/forum/discussion/1891/gpioneer-a-side-project-compatible-with-piplay/p1?post#Form_Body
    On the other arcade, I used mkjoystick to map the controls and extra buttons to the GPIO: https://github.com/digitalLumberjack/mk_arcade_joystick_rpi

    hope this helps. let me know if you have questions.

    #105188
    Profile photo of lordluca
    lordluca
    Participant

    ok, am i getting this right:

    You have USB cntrolle and ADDITIONALY you wired few buttons to GPIO?

    Ok, when i install gpioneer does it affect usb buttons in any way? (so, when i have my usb joystick and buttons perfectly configured and i install gpioneer it will not switch off usb buttons? – so i can use usb for joystick and buttons and ONLY two flipper buttons wired GPIO ADDITIONALLY?
    It’s not USB OR GPIO ?

    And does it matter which gpio pins i connect to side flipper buttons?

    thaks for your reply 🙂

    #105218
    Profile photo of phoenix
    phoenix
    Participant

    That’s it exactly. The Gpioneer plays together with the USB controller just fine. It does not matter which GPIO inputs you use for your buttons, just make sure it’s an INPUT. The only thing that threw me with installing GPIOneer is it needs the rpi.gpio library installed first. Use the answer in this link:http://raspberrypi.stackexchange.com/questions/8220/how-to-correctly-install-the-python-rpi-gpio-library if you are not python smart.

    Once installed, you just type in the URL of the pi, and it will bring up the GPIOneer configurator to program your buttons. What’s nice is you can change them at any time very simply. Your other choice is retrogame. It does basically the same thing as GPIOneer, but it is not as flexible.

Viewing 4 posts - 1 through 4 (of 4 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar