Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    Keybindings via GPIO

    Recalbox General
    game gear
    2
    12
    2962
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • hstampfl
      hstampfl last edited by

      Hello First I would say thank you for this distro. It looks great. I have bult an PortaPi arcade machine from retrobuiltgames.com. The system is built with Retropie and it uses the adafruite retrogame gpio implementation. I would like to use my PortaPi with recalbox-os. I have now following questions: The GPIO implemntation is done with an joystick driver. Is there a possibility to have also Keybindings mapped via GPIO (eg. ESC, F1 ...) If not is it possible to implement adafruit retrogame gpio input? Is it possible to bind the joystick driver to use other GPIO pins? I am thinking about building my own buildroot. What for an System I need for building my own recalbox-buildboot distro. Is it best to use a debian/386 distro for cross compiling? Kind regards Heinz

      I started my retro passion in 1985 with my C64.....Today I have a small (retro) console collection including NES, SNES, N64, GC, Wii, WiiU, GB, GBC, GBA, NDS, DSi, 3DS, 3DS XL, 2DS, NEW 3DS, SMS, SMD, SG, SD, XBOX, XBOX360, XBOX ONE, PSone, PS2, PS3, PS4, PSP, PS VITA, VECTREX, C64, AMIGA 600, MIST Board, Turbo Chamäleon

      1 Reply Last reply Reply Quote 0
      • digitaLumberjack
        digitaLumberjack Staff last edited by

        Hi !

        The GPIO implemntation is done with an joystick driver. Is there a possibility to have also Keybindings mapped via GPIO (eg. ESC, F1 …)

        The GPIO driver is https://github.com/digitalLumberjack/mk_arcade_joystick_rpi is create joystick special files detected as simple joysticks by SDL. You can't bind the gpio events mapped to keyboard. But recalboxOS doesn't need any keyboard to work.

        If not is it possible to implement adafruit retrogame gpio input?

        No because it would be useless as recalbox works well with joysticks.

        Is it possible to bind the joystick driver to use other GPIO pins?

        Yes if you recompile the driver changing the button mapping. It will never be an option in recalbox as i want the system to stay user friendly (and noob friendly)

        1 Reply Last reply Reply Quote 0
        • hstampfl
          hstampfl last edited by

          Thanks for your fast response. I asked for rebinding, so that I can use the portapi image or recalboxos vice versa without recabeling the whole arcade. In this case it makes sense to do one one system a redefineing the keys. But in this case I think I will do it on the portapi image.

          I started my retro passion in 1985 with my C64.....Today I have a small (retro) console collection including NES, SNES, N64, GC, Wii, WiiU, GB, GBC, GBA, NDS, DSi, 3DS, 3DS XL, 2DS, NEW 3DS, SMS, SMD, SG, SD, XBOX, XBOX360, XBOX ONE, PSone, PS2, PS3, PS4, PSP, PS VITA, VECTREX, C64, AMIGA 600, MIST Board, Turbo Chamäleon

          1 Reply Last reply Reply Quote 0
          • digitaLumberjack
            digitaLumberjack Staff last edited by

            That would be the best solution, because even if you recompile you own version of mk_arcade_joystick_rpi on the recalbox, an update would erase overwrite your module with the original one...

            1 Reply Last reply Reply Quote 0
            • hstampfl
              hstampfl last edited by

              When I only use GPIO based Josystick, what is the Hotkey there? On the pinout I only can see Start and Select.

              I started my retro passion in 1985 with my C64.....Today I have a small (retro) console collection including NES, SNES, N64, GC, Wii, WiiU, GB, GBC, GBA, NDS, DSi, 3DS, 3DS XL, 2DS, NEW 3DS, SMS, SMD, SG, SD, XBOX, XBOX360, XBOX ONE, PSone, PS2, PS3, PS4, PSP, PS VITA, VECTREX, C64, AMIGA 600, MIST Board, Turbo Chamäleon

              1 Reply Last reply Reply Quote 0
              • digitaLumberjack
                digitaLumberjack Staff last edited by

                You can use select, no shortcut is set for select.

                1 Reply Last reply Reply Quote 0
                • hstampfl
                  hstampfl last edited by

                  thank you. I just finished the cabeling in my cabinet. I enabled GPIO Interface in the Settings, but it seems that they are not working on my RPi2. Is there a way to troubleshoot this? I verfied the cabeling twice. When I try to configure the controller it detects 2 controllers. I only have an 1 Player cabinet. But I think this could not be an issue only to do the cabeling for player 1.

                  I started my retro passion in 1985 with my C64.....Today I have a small (retro) console collection including NES, SNES, N64, GC, Wii, WiiU, GB, GBC, GBA, NDS, DSi, 3DS, 3DS XL, 2DS, NEW 3DS, SMS, SMD, SG, SD, XBOX, XBOX360, XBOX ONE, PSone, PS2, PS3, PS4, PSP, PS VITA, VECTREX, C64, AMIGA 600, MIST Board, Turbo Chamäleon

                  1 Reply Last reply Reply Quote 0
                  • hstampfl
                    hstampfl last edited by

                    A small update: With a RaspberryPi B+ the GPIO Controller works. Only with my RaspberyPi 2 it does not work. PS: When I assign the Hotkey to the Select button is not a real good solution. When I do that it cloeses the emulations wenn I need to use the select button.

                    I started my retro passion in 1985 with my C64.....Today I have a small (retro) console collection including NES, SNES, N64, GC, Wii, WiiU, GB, GBC, GBA, NDS, DSi, 3DS, 3DS XL, 2DS, NEW 3DS, SMS, SMD, SG, SD, XBOX, XBOX360, XBOX ONE, PSone, PS2, PS3, PS4, PSP, PS VITA, VECTREX, C64, AMIGA 600, MIST Board, Turbo Chamäleon

                    1 Reply Last reply Reply Quote 0
                    • digitaLumberjack
                      digitaLumberjack Staff last edited by

                      A small update: With a RaspberryPi B+ the GPIO Controller works. Only with my RaspberyPi 2 it does not work.

                      I openened an issue https://github.com/digitalLumberjack/recalbox-os/issues/24

                      When I assign the Hotkey to the Select button is not a real good solution. When I do that it cloeses the emulations wenn I need to use the select button.

                      That's a bug since the shortcut to exit games is : Hotkey + Start Could you tell me more about that ?

                      1 Reply Last reply Reply Quote 0
                      • hstampfl
                        hstampfl last edited by

                        When I assign the Hotkey to the Select button is not a real good solution. When I do that it cloeses the emulations wenn I need to use the select button.

                        It's not a bug. I found a cabeling error on my side. It works as it should - Hotkey + Start to exit. Do you need more information about the GPIO stuff on RPi2?

                        I started my retro passion in 1985 with my C64.....Today I have a small (retro) console collection including NES, SNES, N64, GC, Wii, WiiU, GB, GBC, GBA, NDS, DSi, 3DS, 3DS XL, 2DS, NEW 3DS, SMS, SMD, SG, SD, XBOX, XBOX360, XBOX ONE, PSone, PS2, PS3, PS4, PSP, PS VITA, VECTREX, C64, AMIGA 600, MIST Board, Turbo Chamäleon

                        1 Reply Last reply Reply Quote 0
                        • digitaLumberjack
                          digitaLumberjack Staff last edited by

                          I found why it doesn't work, thank you for the feedback. It will be corrected in the next release 😉

                          1 Reply Last reply Reply Quote 0
                          • hstampfl
                            hstampfl last edited by

                            Thank you, I hope it does not take too long until the next release

                            I started my retro passion in 1985 with my C64.....Today I have a small (retro) console collection including NES, SNES, N64, GC, Wii, WiiU, GB, GBC, GBA, NDS, DSi, 3DS, 3DS XL, 2DS, NEW 3DS, SMS, SMD, SG, SD, XBOX, XBOX360, XBOX ONE, PSone, PS2, PS3, PS4, PSP, PS VITA, VECTREX, C64, AMIGA 600, MIST Board, Turbo Chamäleon

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post

                            Want to support us ?

                            75
                            Online

                            98.6k
                            Users

                            28.1k
                            Topics

                            187.0k
                            Posts

                            Copyright © 2021 recalbox.com