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 with controller configuration on dreamcast emulator

    Scheduled Pinned Locked Moved Help and Support
    dreamcastreicastcontroller mapxbox wired cont
    8 Posts 2 Posters 4.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.
    • S
      sagoannahs
      last edited by sagoannahs

      I'm using a wired Xbox 360 controller with the reicast emulator and I've gotten to the point where I can finally launch the games and play them but the 'up' and 'down' on my controller don't work. Well, they work in the game menu but once the game starts and I try to move, I am not able to. Everything else seems to be ok other than those. I've mapped the buttons as the dreamcast setup wiki says to do for Xbox controllers in my dreamcast configs file. Any suggestions??

      1 Reply Last reply Reply Quote 0
      • B
        backstander
        last edited by

        I'm using a Wireless Xbox 360 controller but I think the settings are almost identical (except for maybe the "mapping_name").

        Try adding this to your controller mapping configuration file:

        btn_dpad1_up = 704
        btn_dpad1_down = 707
        

        If that doesn't work then I'll need a little more information from you:

        1. Are you using the xpad driver?

        2. Post the contents of your controller mapping config file.

        If you're using the xpad driver then you might try using the "Xbox 360 Wireless Controller using xpad driver" configs from the Wiki (make backups of your originals first!):
        https://retropie.org.uk/docs/Dreamcast/

        S 1 Reply Last reply Reply Quote 0
        • S
          sagoannahs @backstander
          last edited by

          @backstander I do have the xpad driver. my current config file is:

          [emulator]
          mapping_name = Xbox 360 Controller (xpad driver)
          btn_escape = 0x13a

          [dreamcast]
          btn_a = 0x130
          btn_b = 0x131
          btn_c = 0x136
          btn_d = 0x137
          btn_x = 0x133
          btn_y = 0x134
          btn_z = 0x13d
          btn_start = 0x13b
          btn_dpad1_left = 0x2c0
          btn_dpad1_right = 0x2c1
          btn_dpad1_up = 0x2c2
          btn_dpad1_down = 0x2c3
          axis_x = 0x00
          axis_y = 0x01
          axis_trigger_left = 0x02
          axis_trigger_right = 0x05

          [compat]
          axis_dpad1_x = 0x10
          axis_dpad1_y = 0x11

          If I were to use the mappings for the wireless controller from the wiki what would I put the mapping name as? "mapping_name = Xbox 360 Wireless Receiver (XBOX)" just as it's written in the wiki or just keep it as my current "Xbox 360 Controller (xpad driver)"?

          B 1 Reply Last reply Reply Quote 0
          • B
            backstander @sagoannahs
            last edited by backstander

            @sagoannahs

            If I were to use the mappings for the wireless controller from the wiki what would I put the mapping name as?

            I don't know if it matters but keep the current "Xbox 360 Controller (xpad driver)"

            But first! before changing everything, try just changing these 2 lines only:

            btn_dpad1_up = 704
            btn_dpad1_down = 707
            

            If the above doesn't work then try using all the Xbox 360 Wireless controller configs.

            S 1 Reply Last reply Reply Quote 0
            • S
              sagoannahs @backstander
              last edited by

              @backstander I got it! Thank you for the suggestions. I ended up needing to change all of them to match the wiki for wireless controllers.

              Hey, another controller question that you might be able to help with. Can I enable the analog stick for PlayStation games? I know the original ps1 controllers didn't have them, but when you play a ps1 games on ps2 you were always able to use the analog sticks if you wanted. I've gone into the button mapping in a game through retroarch and I can see at the top where you can switch the controller to 'xpad with analog' but it never saves. Is there another way?

              B 3 Replies Last reply Reply Quote 1
              • B
                backstander @sagoannahs
                last edited by backstander

                @sagoannahs

                Can I enable the analog stick for PlayStation games?

                I'm still trying to figure out how to get both the older games that are pre-analog stick and the newer ones that support analog stick working at the same time but here's what I know.

                You can edit /opt/retropie/configs/all/retroarch-core-options.cfg and put this in there to force analog support:

                pcsx_rearmed_pad1type = "analog"
                pcsx_rearmed_pad2type = "analog"
                pcsx_rearmed_pad3type = "standard"
                pcsx_rearmed_pad4type = "standard"
                

                That will set the first 2 controllers as "analog" and the 3rd and 4th controllers as not.

                More information here:
                https://retropie.org.uk/docs/Playstation-1/#analog-controller-type

                You can also experiment with editing /opt/retropie/configs/psx/retroarch.cfg and adding this above the #include line:

                # Use analog stick as dpad (left stick = 1, right stick = 2)
                input_player1_analog_dpad_mode = "1"
                input_player2_analog_dpad_mode = "1"
                input_player3_analog_dpad_mode = "0"
                input_player4_analog_dpad_mode = "0"
                

                Again the first 2 controllers as "analog" and the 3rd and 4th controllers not set. I think you can even use the right analog stick if you use "2".

                1 Reply Last reply Reply Quote 0
                • B
                  backstander @sagoannahs
                  last edited by

                  @sagoannahs

                  I've gone into the button mapping in a game through retroarch and I can see at the top where you can switch the controller to 'xpad with analog' but it never saves. Is there another way?

                  Oh yeah, that setting is in /opt/retropie/configs/all/retroarch.cfg

                  # Joypad w/ Analog (RetroPad + Analog sticks): 5
                  input_libretro_device_p1 = "5"
                  input_libretro_device_p2 = "5"
                  input_libretro_device_p3 = "5"
                  input_libretro_device_p4 = "5"
                  
                  1 Reply Last reply Reply Quote 0
                  • B
                    backstander @sagoannahs
                    last edited by backstander

                    @sagoannahs
                    You can also use the Configuration Editor (instead of editing /opt/retropie/configs/psx/retroarch.cfg manually)

                    RetroPie Setup Script >> Setup / Configuration >> Edit RetroPie/RetroArch Configurations

                    More information (with pictures) here:
                    https://retropie.org.uk/docs/Configuration-Editor/

                    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.