• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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 25 Aug 2022, 21:16

    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
    • M
      mitu Global Moderator
      last edited by 26 Aug 2022, 07:13

      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 29 Aug 2022, 10:41 Reply Quote 0
      • T
        TimeToR @mitu
        last edited by 29 Aug 2022, 10:41

        @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
        • M
          mitu Global Moderator
          last edited by 4 Sept 2022, 07:23

          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 5 Sept 2022, 05:33 Reply Quote 1
          • T
            TimeToR @mitu
            last edited by 5 Sept 2022, 05:33

            @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
            2 out of 5
            • First post
              2/5
              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.

              This community forum collects and processes your personal information.
              consent.not_received