RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Help with GameHat and SNES Controller to coexist

    Scheduled Pinned Locked Moved Help and Support
    gamehatwaveshareraspberry 3braspianretropie
    5 Posts 2 Posters 439 Views
    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.
    • T
      TimeToR
      last edited by TimeToR

      Hello!

      I have a waveshare gamehat in my Rasp 3b, for some reason one day I decided to put some nintendo 64 and playstation games and when I realized that they worked well I became very curious to be able to expand the buttons on the gamehat, for now what I did was adapt a SNES control (clone) to the shell that I 3D printed, my plan was that if it worked directly adapt the plate and buttons to the shell, but it turns out that it didn't work. I mean I can't get both controls to coexist, I was reading and I saw that several have similar problems, but none of the posts or videos reach a result and they are left in a limbo.

      The funny thing is that at least on PSX I was able to make my gamehat (GPIO and a very cheap modification of mk_arcade_joystick_rpi) work with a mini usb keyboard (those for smart tv and android tv) and for example I was able to assign keys for fast forward and some other short cuts, but with the SNES control I can't do the same. (I leave some links of some images for everyone to have fun, as I mentioned, the mod is VERY homemade.)

      https://ibb.co/fMXj6Xj
      https://ibb.co/TY6kdMf
      https://ibb.co/zPQQYvQ

      Thank you all for your time!

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        I mean I can't get both controls to coexist, I was reading and I saw that several have similar problems, but none of the posts or videos reach a result and they are left in a limbo.

        Not sure what exactly doesn't work - the gamehat I assume it's using the GPIO for sending inputs, how exactly is the 'SNES Control' connected to the Pi ? It would be useful to add some more technical details of what you've tried (hw/sw/config) and what is not working.

        T 1 Reply Last reply Reply Quote 0
        • T
          TimeToR @mitu
          last edited by

          @mitu

          What does not work precisely is to make the Snes control (usb) share inputs with the GPIO of the gamehat both controls as player 1.
          The function of the Snes control is to expand the number of gamehat buttons to play n64, for example, with a 6-button configuration like the gamehat originally has, it is difficult or in some cases impossible.

          While writing this was wondering how possible it would be to assign the Snes controller buttons to this line mk_arcade_joystick_rpi map=5 gpio=5,6,13,19,21,4,26,12,23,20,16,18

          Would something like this be possible? Knowing exactly what driver and button number the Snes controller uses? Even if it were possible, there would be a conflict between two inputs using button 3. Hmmm...

          1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator
            last edited by

            Usually the emulators use one controller per player, so if your SNES controller is detected as a separate controller, then it's going to be used as the player 2 controller and not 'shared' with the player 1 (the GPIO based).

            You may try using the xboxdrv driver, which is able to combine 2 inputs sources into one, creating an additional 'virtual' controller. RetroArch also has the option to map multiple controls to one player port - see https://github.com/libretro/RetroArch/pull/12534 (this works when using the libretro Mupen64plus(-next) core and not the standalone Mupen64plus emulator).

            T 1 Reply Last reply Reply Quote 1
            • T
              TimeToR @mitu
              last edited by

              @mitu Thank you! I will try this in the next days and let you know if It works.

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

              Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

              Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.