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

    Dreamcast (reicast) and 2 xbox360 controllers

    Scheduled Pinned Locked Moved Help and Support
    12 Posts 3 Posters 10.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.
    • K
      korrok
      last edited by

      Hi all,

      I want to use my 2nd xbox 360 controller with reicast but, even if the first one works perfectly I wasn't able to add the second one.

      I've tried to add my second xbox360 controller into the reicast configuration by modifying the emu.cfg file.
      addind the line
      ""
      evdev_device_id_2 = 6
      ""

      where "6" is the number of my controller found out from "evtest" comand

      But each time I launch the reicast emulator the emu.cfg file is erased and renewed with a new file where the "device_id2" line is removed.

      I've tried also by changing the first device by the number of my second device but reicastr came back to the other controller. So in a first hand reicast doesn't want 2 controllers but on the other hand it also wants only a specific controller, not the other one.

      I've tried of course to redo the retropie "input" configuration procedure from the begining. I've tried to remove and add again my xbox controller , but nothing solved my problem.

      could you advice please ?

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

        Just to add that I've managed to modify the emu.cfg file by modifying the reicast.sh script, but I'm still stuck with just one xbox360 controller.

        Here is my evtest comand result:

        pi@retropie:/opt/retropie/emulators/reicast/bin $ evtest
        No device specified, trying to scan all of /dev/input/event*
        Not running as root, no devices may be available.
        Available devices:
        /dev/input/event0: Mini Keyboard
        /dev/input/event1: Mini Keyboard
        /dev/input/event6: Xbox Gamepad (userspace driver)
        /dev/input/event7: Xbox Gamepad (userspace driver) #2
        Select the device event number [0-3]: ^C

        And here is my emu.cfg file :

        [input]
        evdev_device_id_1 = 7
        evdev_device_id_2 = 6
        evdev_device_id_3 = -1
        evdev_device_id_4 = -1
        evdev_mapping_1 = /opt/retropie/configs/dreamcast/mappings/controller_XboxGamepad(userspacedriver)#2.cfg
        evdev_mapping_2 = /opt/retropie/configs/dreamcast/mappings/controller_XboxGamepad(userspacedriver).cfg
        joystick_device_id = -1

        1 Reply Last reply Reply Quote 0
        • H
          Hyell
          last edited by Hyell

          Hello,

          You got an explanation here :
          http://blog.petrockblock.com/forums/topic/dreamcast/page/2/

          Reicast emulator is compiled with one controler.
          I make a modification on github, but it's not on retropie branch (I think I did something wrong)

          You can compile it on your raspberry, or I can upload this version if you want.

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

            Hi Hyell,

            I've read previous thread and it is exactly the issue I'm facing.

            First in case someone else is reading this post, I would like to put again the python script which makes it very easy to configure my xbox360 controller.

            https://github.com/reicast/reicast-emulator/blob/3ed2985d510733062e295f8d343cc717f158b4c7/shell/linux/tools/reicast-joyconfig.py

            Then I copy/paste your explanation here in order to help people who might be searching for the same answer :


            Download source here : https://github.com/RetroPie/reicast-emulator
            and change this file :
            reicast-emulator-master\core\hw\maple\maple_cfg.cpp
            At the end of file you got a function : mcfg_CreateDevices
            just add one line to create a second controller
            mcfg_Create(MDT_SegaController,1,5);

            Recompile all and replace your executable reicast file.(Save it first)
            (/opt/retropie/emulators/reicast/bin/reicast by /usr/local/bin/reicast)

            I would love to download directly the reicast file already complied for Raspberry, but If I want to fully understand and improve my skills I should try as you said. However I must ask about the compile procedure, does it takes a very long time (I've a Pi3) ? Does it involve many new dependancies or my retropie should have it already.

            And it says This branch is 24 commits behind reicast:master, should I get this version of source code (because the modification you've made is in hre), or should I get the latest.

            Eventually thanks a lot you, you've liftet up my spirit today. I'm looking forward to test it with powerstone 2.

            I will try it after tomorrow.

            1 Reply Last reply Reply Quote 0
            • H
              Hyell
              last edited by

              Compilation is not really hard. It's take few minutes on a PI3 (I got a PI3 too).

              You can follow this :

              Put all source code on a directory of your raspberry.
              For example : /home/pi/reicast-compil

              Add the line on /home/pi/reicast-compil/reicast-emulator-master/core/hw/maple/maple_cfg.cpp (end of file)
              You got :
              mcfg_Create(MDT_SegaController,0,5);
              mcfg_Create(MDT_SegaController,1,5);

              On your raspberry, go to /home/pi/reicast-compil/reicast-emulator-master/shell/linux
              there is a ”Makefile” file.

              Compilation have 2 steps :
              Step 1 :
              type : make (It will compilling the soft – it’s take few minutes)
              if make failed, you may have to install some package (with commande sudo apt-get install package_name) like gcc.
              you just have to replace package_name by the name of the missing librairy.

              Step 2 :
              type : sudo make install ( it will installing the soft)

              New executable file is here :
              /usr/local/bin/reicast

              Save your OLD file :
              /opt/retropie/emulators/reicast/bin/reicast

              And replace the old file with the new one.

              Restart your raspberry, and it's OK :)

              I hope it will help you.

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

                Hi Hyell,

                Sorry for the late reply, I was away few days.

                Good news and many thanks, it worked !!

                I'm now able to play soul Cailbur and PowerStone 2 with my two xbox Controller, I'm so happy.

                Explanations were so simple that we should wright a wiki to help others.

                Many thanks

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

                  Is there any progress on getting a multiple controller fix for Dreamcast Ricast incorporated into RetroPie (not exclusive to xbox controllers)?

                  re: http://blog.petrockblock.com/forums/topic/dreamcast/page/2/#post-122182

                  H 1 Reply Last reply Reply Quote 0
                  • H
                    Hyell @vretro
                    last edited by

                    @vretro :
                    No, I cannot commit on retropie branche, and I don't know why. It's always add a branch on my hithub account.
                    I will take some time to see "how work github" .

                    V 2 Replies Last reply Reply Quote 0
                    • V
                      vretro @Hyell
                      last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • V
                        vretro @Hyell
                        last edited by

                        @Hyell I think this issue may have just recently been solved:
                        https://github.com/RetroPie/RetroPie-Setup/pull/1470

                        H 1 Reply Last reply Reply Quote 0
                        • H
                          Hyell @vretro
                          last edited by

                          @vretro
                          Yes, it's a first modification on reicast launch script (auto count player). The reicast modification is in progress, but it will be OK soon

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

                            @Hyell Thank you for your work on a fix :)

                            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.