Help with GameHat and SNES Controller to coexist
-
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/zPQQYvQThank you all for your time!
-
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.
-
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...
-
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). -
@mitu Thank you! I will try this in the next days and let you know if It works.
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.