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

    HuiJia N64 USB adaptor setup

    Scheduled Pinned Locked Moved Help and Support
    n64usb controllerhuijia
    17 Posts 9 Posters 12.6k 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.
    • V
      vretro @seanr8
      last edited by

      Hi @seanr8 thank you for sharing your insight along with your config files.

      With your help, I was able to get player 1 working 100%

      I have now discovered how problematic these adaptors can be.
      The second player port (the left hand side) seems to show up as player 3, even if the adaptor is the only USB device attached, with 2 official N64 controllers attached.

      This might be a config issue, but I have yet to investigate as I wanted to thank you first.
      Having only official controllers to attach, I can't comment on how unofficial controllers preform.

      With my goal of attaching 4 controllers, I purchased two adaptors, but it seems that the second one is completely dead and does not show up on the USB bus (tested on a Mac using System Report found in About this Mac) so I will have to purchase another adaptor.

      So close, but yet so far!

      1 Reply Last reply Reply Quote 0
      • V
        vretro @mediamogul
        last edited by vretro

        @mediamogul no, at EmulationStation controller config, it does not register any directions.

        With the Help of the settings supplied by @seanr8 I was able to make a new config which works perfectly with Mupen 64 Plus and EmulationStation is navigable using the D pad.

        1 Reply Last reply Reply Quote 0
        • S
          seanr8
          last edited by

          @vretro, my goal is also to get 4 players working. As far as it getting registered as players 1&3 rather than 1&2, I haven't seen that myself yet mostly because my controllers aren't cooperating :P . I am surprised that it's showing as 1&3 for you, however, because, at least on my Pi, one of the adapters being plugged in adds two devices to /dev/input called js0 and js1. I'd assume that if it's were going to be controllers 1&3, it would register js0 and js2 for controllers 1 and 3. I could be just completely wrong in my understanding of how udev is assigning numbers or how mupen64plus is assigning controllers, however. If you plug in both adapters and no other controllers at all plugged in, when you run "ls /dev/input" how many "js" items are in there? That might give you an idea as to whether it's mupen64plus's refusal to use two of the adapters or if udev isn't seeing two adapters. Another trick would be to remove both adapters, get to the terminal, and run "dmesg -wH", then plug in the adapters one by one. dmesg will show you what is happening each time there is a new device plugged in, so if there are any errors with the second one being plugged in, dmesg might show that error. If not, I'd run "sudo journalctl" and look all the way at the bottom to see if any errors were logged in the systemd system log about the adapters.

          Last night, I bought one of these adapters that has in its description that it works with the third party controllers that have been tested with it. Since they only have one port on them, if it works, I might buy another and see how it registers. The biggest draw back of them is that I need twice as many of them and each one costs twice as much as what I paid for the Mayflash ones.
          If the new adapter doesn't solve the problem, I might start investigating doing something like described here and here to see if I can capture the behavior of the third party controllers on the Mayflash and possibly "debounce" the toggling in software with a custom driver for the Mayflashes or something. When I was in college, I did something like it on much less complex hardware and software, so I know it's possible... I just don't know if it's worth the trouble.

          V 1 Reply Last reply Reply Quote 0
          • V
            vretro @seanr8
            last edited by

            @seanr8 Since my last post I have managed to get 2 Players working.

            I deleted the Auto Config and configured using EmulationStation again, then copy and pasted the settings from your config.

            There were a few different versions of the HuiJia adaptor on your configs, which seemed to have different number increments for player two. My config does not have these additional numbers and it works perfectly.

            Maybe these will help you?

            Thank you again for getting me on the right track.

            Here are my configs on Gist with my working basic settings:
            InputAutoCfg.ini
            https://gist.github.com/vretro/8fdd4c5056de62867e0dee5bbddf5682

            mupen64plus.cfg
            https://gist.github.com/vretro/274aa1808f8bd94ee3f07971273902b7

            L 1 Reply Last reply Reply Quote 2
            • D
              dvmanzo
              last edited by

              @vretro thanks for the config files! Now, my only issue is that my second Mayflash USB adapter for N64 isn't recognized in Mupen, but it IS recognized in EmulationStation. Any idea on what it could be? I think this might be the same issue @seanr8 is hitting.

              Any advice or direction you can give is appreciated.

              Thanks!

              1 Reply Last reply Reply Quote 0
              • D
                dvmanzo
                last edited by

                Nevermind, I figured it out. I think my SNES adapters were messing up the N64 adapters. Thanks again!

                1 Reply Last reply Reply Quote 0
                • R
                  roffterd
                  last edited by

                  @vretro echoing thanks for these config files! I was able to use them to get my gig setup (Hujia USB adaptor and 2 dragonrise USB adaptors). Pic of my setup here: PiTable

                  V 1 Reply Last reply Reply Quote 0
                  • V
                    vretro @roffterd
                    last edited by

                    @roffterd Happy to have been able to help others out like yourself and @dvmanzo with my N64 config files.

                    PiTable looks well, nice job.

                    1 Reply Last reply Reply Quote 0
                    • L
                      lorocator @vretro
                      last edited by

                      @vretro I've also got the HuiJia USB N64 adapter to use original controllers. Many thanks for the configs. you shared above they worked first try for me. I only have one controller but would this config work on 2 HuiJia USB N64 adaptors and 4 original controllers?
                      Sorry the next silly question but I'm new on this retropie world, how do I activate the memory pack, for any game using this or any controller? not sure if I press a hotkey, button or a change in the config. file? Cheers

                      V 1 Reply Last reply Reply Quote 0
                      • V
                        vretro @lorocator
                        last edited by

                        @lorocator Happy to help!

                        I can confirm that my config files will enable the use of 4 original controllers with 2 USB HuiJia adaptors - that is exactly what I have done.

                        Save files are handled with software and saved to Pi storage in the same directory as the game, by default. You can get support for that by searching the form.

                        Good luck and happy 4 player gaming!

                        1 Reply Last reply Reply Quote 0
                        • C
                          cbauer
                          last edited by

                          Hey I know this thread is old, but I wanted to throw in a fix I did for good measure. It is not perfect, but seems to work very, very well and was a quick fix. First map your controller at the boot up. Then take the config file from /opt/retropie/configs/all/retroarch/autoconfig - should be HuiJiaUSBGamePad.cfg. Take that file and throw it into /opt/retropie/configs/n64.

                          1 Reply Last reply Reply Quote 0
                          • edmaul69E
                            edmaul69 @seanr8
                            last edited by

                            @seanr8 ok couple things. I would buy an adapter from raphnet-tech.com. They work great. Second to make an exit work open up the retroarch config file created for the controller in /opt/retropie/configs/all/retroarch/autoconfig/ and add "input _enable_hotkey_button = "and set it to the trigger button. Yes i know it is in the retroarch file. For whatever reason that is where it looked for the hotkey. You could also try going into the mupen config file and manually setting the 2 exit buttons.

                            1 Reply Last reply Reply Quote 0
                            • N
                              NoOddJob
                              last edited by

                              @seanr8 said in HuiJia N64 USB adaptor setup:

                              /opt/retropie/configs/n64

                              I apologize for reviving an old post but this post was perfectly on topic for what I am looking for. I have been scouring the internet for the past three days, and editing config files over and over with no luck. I also have the Mayflash with original n64 controller. With your config files, I was finally able to get actual input in roms with the controller. I can't tell you how excited I was and I can't thank you enough. However, I am having some additional in rom issues. For example in Mario, he walks instead of runs even with the joystick at full tilt. Any ideas on how to fix these issues? Did you run into these type of issues?

                              1 Reply Last reply Reply Quote 1
                              • 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.