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

    JSTEST program source code

    Scheduled Pinned Locked Moved Help and Support
    joystick mapingjoysticksjoystick help
    13 Posts 4 Posters 1.2k 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.
    • mituM
      mitu Global Moderator @MaMikee
      last edited by

      @MaMikee said in JSTEST program source code:

      Anyone know what this might be related to? GitHub problems I've heard of lately?

      What version of RetroPie are you using ? The mk_arcade_joystick_rpi sources are not hosted on that site, but in the past the gamecon drivers have been downloaded from it.
      Can you add more info about your system - https://retropie.org.uk/forum/topic/3/read-this-first.

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

        @MaMikee

        Hi,

        It sounds like you are following the manual installation instructions. There is no need to do this, just use the installer in the retropie setup.

        I have extensive knowledge of mk_arcade_joystick including the MCP extension and custom mappings. If you get any issues, let me know and I will try to help.

        Are you configuring 1 or 2 controllers? The retropie setup will default to a single controller, you need to change the config file to map a second controller after install if required.

        Si

        1 Reply Last reply Reply Quote 0
        • MaMikeeM
          MaMikee
          last edited by

          I am running RPIE 4.5.

          I notice that you can add a driver called "MKARCADEJOYSTICK" that you can view in "RetroPie-Setup -> Manage Packages -> Drivers, is this the same thing?

          I am trying to configure a single controller of my own design. It is hooked up to ground R, L, U, D and "A". Also SELECT and START.

          1 Reply Last reply Reply Quote 0
          • MaMikeeM
            MaMikee
            last edited by

            I've seen references to "~GAMECON~" and to "MK_ARCADE_JOYSTICK", are they different ways to do the same thing? Is one preferred?

            1 Reply Last reply Reply Quote 0
            • MaMikeeM
              MaMikee
              last edited by

              The version "4.5" is what the image I used was called. uname -a gives

              Linux Retropie 4.19.58-V7+ #1245

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

                Gamecon is designed for a different purpose (attaching original NES/SNES/playstation controllers to GPIO). Mk arcade joystick is for connecting microswitches or tack switches to gpios to interpret controls.

                Yes the mk arcade joystick in the menu is probably what you want if you are connecting joysticks and buttons directly to the GPIO.

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

                  @MaMikee said in JSTEST program source code:

                  Thank you, I'm trying to build a GPIO direct-connect joystick. To do this I am trying to build the "mk_arcade_joystick_rpi" package which bombs on a wget command from some "niksula.hut.fi" web site.

                  Just for info, I think the niksula.hut.fi stuff is the old headers files. They are now available as part of the raspberry pi packages (I think it is something like rpi_headers) so probably wouldn't be needed anyway.

                  For a single controller just install from retropie setup and connect your controller as per the diagram on the mk arcade joystick GitHub page.

                  1 Reply Last reply Reply Quote 0
                  • MaMikeeM
                    MaMikee
                    last edited by

                    OK, so did that and noticed that no /dev/input/js? devices were created.

                    According to the instructions at this time you run "modprobe" which gives the error "Fatal: Module mk_arcade_joystick_rpi not found in directory /lib/modules/4.19.58-V7+

                    Ideas on this conundrum?

                    mituM simonsterS 2 Replies Last reply Reply Quote 0
                    • mituM
                      mitu Global Moderator @MaMikee
                      last edited by

                      @MaMikee said in JSTEST program source code:

                      According to the instructions at this time you run "modprobe" which gives the error "Fatal: Module mk_arcade_joystick_rpi not found in directory /lib/modules/4.19.58-V7+
                      Ideas on this conundrum?

                      Did you install the driver ? Did you get any errors during installation ? The error shows that the driver is not installed for your Linux Kernel version.

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

                        @MaMikee

                        Just had a thought, if you followed the manual install instructions, it may have changed your version of GCC to an old version which may affect your ability to compile.

                        I can't remember what it was but it definitely happened to me at some point.

                        Edit: It was this line, forced an earlier version of cpp and GCC to be linked as current version:
                        sudo apt-get install -y --force-yes dkms cpp-4.7 gcc-4.7 git
                        I think I had to force reinstall the current builds of gcc and cpp back on over the top.

                        Si

                        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.