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

    How to map N64 controller as described in RetroPie Docs?

    Scheduled Pinned Locked Moved Help and Support
    n64 controllern64 emulatormupen64plus
    4 Posts 3 Posters 2.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.
    • R
      Rip
      last edited by

      Hi all, I know many people have inquired about N64 controller mapping but it seems their solutions didn't work for me.

      So as many of you probably know, the RPi documentation for N64 (https://retropie.org.uk/docs/Nintendo-64/) shows that C-Left is both "Right Analog Left" and "X" and C-Down is "Right Analog Down" and "A."

      How can I map it this way, the RetroPie Input Configuration doesn't let you do that?

      Further, I'm using Mupen64Plus, and when I open the RetroArch menu and try to config controls there, I'm able to get everything right except C-Up and C-Right. I set the buttons to the correct input, but simply nothing happens when you press these buttons.

      Currently have it set like:

      button 9 = "C Buttons Y-"
      button 0 = "C Buttons Y+"
      button 3 = "C buttons X-"
      button 8 = "C Buttons X+"

      D 1 Reply Last reply Reply Quote 0
      • D
        Dan1300 @Rip
        last edited by

        @rip Who's the manufacturer of your controller? I have a Vilros and I have no issues with it.

        I used this to map mine
        alt text
        which is right from your N64 link in your post.

        If this is a programming side thing then you have to wait for the programming savvy folks to chime in.

        R 1 Reply Last reply Reply Quote 0
        • R
          Rip @Dan1300
          last edited by

          @dan1300 Yes I tried that, under that config the Z trigger doesn't work and the B button doesn't work and A and B are swapped with each other and I think 1 or 2 other issues.

          This is the controller I got:
          https://www.amazon.com/gp/product/B0744DW55H/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1

          Which is identified in RetroPie as "SWITCH CO.,LTD. Controller (Dinput)"

          Z 1 Reply Last reply Reply Quote 0
          • Z
            zaladt @Rip
            last edited by zaladt

            @rip I had the very same issue and could not find any good solution posted already so I will post mine here (Z button was never an issue for me , Z button is also my hotkey)

            Once configured as screenshot above and after first launch with n64 emu the following configuration was generated into /opt/retropie/configs/n64/InputAutoCfg.ini

            ; SWITCH CO.,LTD. Controller (Dinput)_START
            [SWITCH CO.,LTD. Controller (Dinput)]
            plugged = True
            plugin = 2
            mouse = False
            AnalogDeadzone = 4096,4096
            AnalogPeak = 32768,32768
            Mempak switch =
            Rumblepak switch =
            C Button U = button(9)
            L Trig = button(4)
            C Button D = button(1) button(0) #C Down gets mapped to button(1) which is really B Button and button(0) is the actual C Down button
            DPad U = hat(0 Up)
            DPad L = hat(0 Left)
            C Button L = button(3)
            Y Axis = axis(1-,1+)
            X Axis = axis(0-,0+)
            DPad R = hat(0 Right)
            Z Trig = button(6)
            C Button R = button(8)
            R Trig = button(5)
            DPad D = hat(0 Down)
            Start = button(12)
            A Button = button(2) # Lack of mapping for button B at all
            ; SWITCH CO.,LTD. Controller (Dinput)_END
            

            I then used jtest to actually view which button was what hence my conclusions above with jstest /dev/input/js0 then I edited the file nano /opt/retropie/configs/n64/InputAutoCfg.ini with the following

            ; SWITCH CO.,LTD. Controller (Dinput)_START
            [SWITCH CO.,LTD. Controller (Dinput)]
            plugged = True
            plugin = 2
            mouse = False
            AnalogDeadzone = 4096,4096
            AnalogPeak = 32768,32768
            Mempak switch =
            Rumblepak switch =
            C Button U = button(9)
            L Trig = button(4)
            C Button D = button(0)
            DPad U = hat(0 Up)
            DPad L = hat(0 Left)
            C Button L = button(3)
            Y Axis = axis(1-,1+)
            X Axis = axis(0-,0+)
            DPad R = hat(0 Right)
            Z Trig = button(6)
            C Button R = button(8)
            R Trig = button(5)
            DPad D = hat(0 Down)
            Start = button(12)
            A Button = button(1)
            B Button = button(2)
            ; SWITCH CO.,LTD. Controller (Dinput)_END
            

            Hope this might help someone else with same setup, cheers

            /a

            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.