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 editing n64 InputAutoCfg file for GPIO

    Scheduled Pinned Locked Moved Help and Support
    cpioarcade
    19 Posts 2 Posters 3.9k 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.
    • simonsterS
      simonster
      last edited by

      Hi @kiphouse,

      You've fallen into the trap of using a third party image.

      First of all, are you sure that the controls are connected to the Pi using GPIO and mkarcadejoystick? They need to be connected to specific pins on the GPIO to work with the default driver, assuming it is a Pi2 or 3 then they should be wired according to this diagram:

      0_1505066272679_mk_joystick_arcade_GPIOsb+.png

      With one side of the each button / switch going to the appropriate pin on the GPIO and the other side of all switches going to a common ground pin on the Pi.

      Secondly, can you complete the details in the https://retropie.org.uk/forum/topic/3/read-this-first page.

      Assuming that you have confirmed the wiring, download the image from the download page and after writing it to the SD card and setting up the system, connect a keyboard to the Pi and go into the RetroPie setup and install the mkarcadejoystick from drivers option.

      Si

      1 Reply Last reply Reply Quote 0
      • K
        kiphouse
        last edited by

        It worked, for the player one side of the arcade machine, but its not recognizing the player two side. its connected properly because when i put in the sd card from the guy who built it, it all works fine. I'm halfway there, please help me complete this nightmare lol

        1 Reply Last reply Reply Quote 0
        • simonsterS
          simonster
          last edited by simonster

          OK,

          That means that it is setup in single player. Plug a keyboard in and press F4 whilst in emulation station.

          Type the following:

          sudo nano /etc/modprobe.d/mk_arcade_joystick.conf

          It will probably contain a line as follows:

          options mk_arcade_joystick_rpi map=1

          If it does change this line to

          options mk_arcade_joystick_rpi map=1,2

          press CTRL+X, Y, Enter to save the file and exit the nano editor

          type sudo reboot into the console.

          1 Reply Last reply Reply Quote 0
          • K
            kiphouse
            last edited by

            you have no idea how much i appreciate your replys. im hitting f4, along with every button on the keyboard but that black screen where you type things isnt coming up. i chose quit emulationstation and a black screen where i could type came up (not sure if it's the right screen) but when i typed what you wrote that next line never appeared. on the other build that came with the cabinet i could his the ] button on my keyboard and get that screen.

            1 Reply Last reply Reply Quote 0
            • simonsterS
              simonster
              last edited by

              F4 should be a hard coded quit key in Emulationstation. It sounds like your keyboard isn't being recognised. Unplug it and reconnect it (possibly to a different usb port on the Pi).

              Alternatively if you have it on the network, you can do the same commands by using putty or a similar terminal program over the network.

              1 Reply Last reply Reply Quote 0
              • K
                kiphouse
                last edited by

                holding FN and pushing f4 works. I've entered that script and what i type goes to the top of a new blank black screen except for some things way at the bottom.

                simonsterS 1 Reply Last reply Reply Quote 0
                • simonsterS
                  simonster @kiphouse
                  last edited by simonster

                  @kiphouse

                  The should either have been an empty file or just the one line in it. I'm hoping that the stuff at the bottom are the shortcut keys, they aren't in the file, they are like a help screen. If there was nothing in the file, then just type in:

                  options mk_arcade_joystick_rpi map=1,2

                  press CTRL+X, Y, Enter to save the file and exit the nano editor.

                  Then sudo reboot to force your Pi to restart, this should then load the config.

                  You need to configure both inputs in Emulation Station, as they are listed as separate devices (GPIOController1 and GPIOController2) and the config doesn't automatically switch from player 1 to player 2 (this is different to a USB gamepad, where if you have 2 identical ones, the config automatically is used on both). Press Start on the first controller and Configure Input, then press a button on controller 2 to set it up.

                  K 1 Reply Last reply Reply Quote 0
                  • K
                    kiphouse
                    last edited by

                    You are a lifesaver. One more thing, my controls all work with the various emulators, but my n64 is giving me trouble for days and i cant figure it out. it seems when i input the dpad controls and go into the game its using the analog which is no good to the games i have. when i input the joystick in the analog controls it just goes all wonky. the actual buttons seem to work okay but not the joystick. sometimes depending on what i input, one or two directions might work, but thats it. any ideas?

                    1 Reply Last reply Reply Quote 0
                    • K
                      kiphouse @simonster
                      last edited by kiphouse

                      @simonster said in Any way to access the rest of a 32gb sd card when I flash a 16gb image?:

                      @kiphouse

                      The should either have been an empty file or just the one line in it. I'm hoping that the stuff at the bottom are the shortcut keys, they aren't in the file, they are like a help screen. If there was nothing in the file, then just type in:

                      options mk_arcade_joystick_rpi map=1,2

                      press CTRL+X, Y, Enter to save the file and exit the nano editor.

                      Then sudo reboot to force your Pi to restart, this should then load the config.

                      You need to configure both inputs in Emulation Station, as they are listed as separate devices (GPIOController1 and GPIOController2) and the config doesn't automatically switch from player 1 to player 2 (this is different to a USB gamepad, where if you have 2 identical ones, the config automatically is used on both). Press Start on the first controller and Configure Input, then press a button on controller 2 to set it up.

                      Hey. Do u know how I can get the dpad working for my cpio joystick. When I map the joystick it acts as the analog stick in the emu. When I map it as the analog it becomes all wonky.

                      1 Reply Last reply Reply Quote 0
                      • K
                        kiphouse
                        last edited by

                        bump

                        1 Reply Last reply Reply Quote 0
                        • simonsterS
                          simonster
                          last edited by

                          The default N64 emulator is not a LibRetro emulator (which differs from most of the emulators in RetroPie), its controls are setup using an entirely different method. You will have to take a look at the documentation: https://retropie.org.uk/docs/Nintendo-64/

                          K 2 Replies Last reply Reply Quote 0
                          • K
                            kiphouse @simonster
                            last edited by

                            @simonster said in How can I get n64 dpad working with cpio joystick?:

                            The default N64 emulator is not a LibRetro emulator (which differs from most of the emulators in RetroPie), its controls are setup using an entirely different method. You will have to take a look at the documentation: https://retropie.org.uk/docs/Nintendo-64/

                            i just ran jstest to see what exactly comes up when i try and use my joystick. up is -32767
                            down is 32767 left is -32767 and right is 32767
                            when i find my controller in sudo nano /opt/retropie/configs.n64/InputAutoCfg.ini i see this (nothing for dpad, which is all im looking for)

                            GPIO Controller 1_START
                            [GPIO Controller 1]
                            plugged = True
                            plugin = 2
                            mouse = false
                            AnalogDeadzone = 4096,4096
                            AnalogPeak = 32768, 32768
                            Mempak switch =
                            Rumblepak switch =
                            Start = button(11)
                            C Button D = button(3)
                            A Button = button(0)
                            R Trig = button(7)
                            C Button U = button(3)
                            B Button = button(1)
                            X Axis = axis(0-, 0+)
                            Y Axis = axis(1-, 1+)
                            Z Trig = button(6)
                            ; GPIO Controller 1_END

                            1 Reply Last reply Reply Quote 0
                            • K
                              kiphouse
                              last edited by

                              bump

                              1 Reply Last reply Reply Quote 0
                              • K
                                kiphouse @simonster
                                last edited by

                                @simonster said in Help editing n64 InputAutoCfg file for CPIO:

                                The default N64 emulator is not a LibRetro emulator (which differs from most of the emulators in RetroPie), its controls are setup using an entirely different method. You will have to take a look at the documentation: https://retropie.org.uk/docs/Nintendo-64/

                                i installed that parallel emu and my joystick works fine on it, but of course it runs way too slow. help?

                                1 Reply Last reply Reply Quote 0
                                • K
                                  kiphouse
                                  last edited by

                                  bump

                                  simonsterS 1 Reply Last reply Reply Quote 0
                                  • simonsterS
                                    simonster @kiphouse
                                    last edited by

                                    @kiphouse

                                    I am in the middle of moving house, so haven't got my cab available to test but the fields you need are

                                    Dpad D= axis(0+)
                                    Dpad U= axis(0-)
                                    Dpad R= axis(1+)
                                    Dpad L= axis (1-)

                                    Or maybe 0/1 should be swapped.

                                    K 1 Reply Last reply Reply Quote 0
                                    • K
                                      kiphouse @simonster
                                      last edited by

                                      @simonster i want to tell you how much i appreciate you helping me. After more twelve hour days than id like to admit trying to get it to work i finally did it!! I followed what u last told me to do and put in "0" instead of "2" to make it manual. The last little piece im wondering about is can i map one button as either direction of the analog stick? Im doing this for the wrestling games that all require a tap of the analog to perform your finishing move.

                                      simonsterS 1 Reply Last reply Reply Quote 0
                                      • simonsterS
                                        simonster @kiphouse
                                        last edited by simonster

                                        @kiphouse checking the Mupen64 documentation: http://mupen64plus.org/wiki/index.php?title=Mupen64Plus_Plugin_Parameters I think you should be able to do this, try:

                                        X Axis= button(0,1)
                                        Y Axis= button(2,3)

                                        You will need to get your button numbers. In the settings above, button 0 is left, 1 right, 2 up and 3 down.

                                        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.