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

    Wrong button on Amiga emulator

    Scheduled Pinned Locked Moved Help and Support
    amiberry
    24 Posts 3 Posters 2.8k 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.
    • C
      Chris3535
      last edited by

      with a lot of help from you all on here I am nearly done setting up this pi400 for my dad for xmas.

      However I have one final hurdle to overcome. In the amiga emulator when I play a game again this wrong button on my C64 competition pro joystick (the top right button) is the fire button and not the top left button that I want it to be.

      How do I go about changing this please? I assume I might have to change some config file? if that's the case can you please tell me exactly what to type in an where? also I don't want it to message up my other emulators as I have them just right.

      Again thanks for everyone's help this weekend I know I have been a pain !

      C 1 Reply Last reply Reply Quote 0
      • C
        Chris3535 @Chris3535
        last edited by

        I have found if I go to custom controls and change East value to joy 2 fire the correct button now works.

        Is there anyway to save the settings so you don't have to keep going back in every time you play a game?

        C 1 Reply Last reply Reply Quote 0
        • C
          Chris3535 @Chris3535
          last edited by

          Think I have done it.. Went into configuration and saved default one it has put the word default in my amiga list but all games work now

          C 1 Reply Last reply Reply Quote 0
          • C
            Chris3535 @Chris3535
            last edited by

            Does work but if there is another more tidier way I'll do that

            1 Reply Last reply Reply Quote 0
            • A
              Amiganoobie
              last edited by

              Just wanted to say thank you for posting your solution on here as I am having the same issue. Once I have tested this ill see if there's a way to save the settings.

              sirhenrythe5thS C 2 Replies Last reply Reply Quote 0
              • sirhenrythe5thS
                sirhenrythe5th @Amiganoobie
                last edited by

                I did it this way:

                copy the default RA-controller-config to another place of your choice (i.e.: "/home/AMIBERRY Inputs/")
                edit the button-mapping as you like in this copied file
                start AMIBERRY-GUI
                go to "paths", navigate the "inputs"-path to your new one.
                click on the button "rescan paths"
                There you go, the inputs are now as you like to have them global for all games ;)

                -- Retro-Achievements Username: SirALX --
                RetroRatio: 1.88
                Started Games beaten: 2,47%
                Site Rank: 4382/93743 ranked users (TOP 4.76%)
                Last seen in [The Legend of Zelda: Lost in Time (HACK) [N64], exploring Hyrule at Night]

                C 1 Reply Last reply Reply Quote 0
                • C
                  Chris3535 @sirhenrythe5th
                  last edited by Chris3535

                  @sirhenrythe5th said in Wrong button on Amiga emulator:

                  I did it this way:

                  copy the default RA-controller-config to another place of your choice (i.e.: "/home/AMIBERRY Inputs/")
                  edit the button-mapping as you like in this copied file
                  start AMIBERRY-GUI
                  go to "paths", navigate the "inputs"-path to your new one.
                  click on the button "rescan paths"
                  There you go, the inputs are now as you like to have them global for all games ;)

                  Thanks for this however is there any chance you could break this down a bit further ?

                  How do you copy the default RA-controller - config to another place?
                  how do you edit the button mapping in this file? and how would i know what to change and what to change it too?
                  the last bit about navigation i know how to do but the first 2 are a little out of my depth at the moment

                  1 Reply Last reply Reply Quote 0
                  • C
                    Chris3535 @Amiganoobie
                    last edited by

                    @amiganoobie you can save the settings by going into configuratrion in the amiberry menu and click on default settings then save.

                    This seems to work but it puts a file called default in the games list when you start retropie.

                    However @sirhenrythe5th seems to have a much better way bit im a bit lost on how to do the first 2 parts at the moment but you might be able to figure it out?

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      Chris3535 @Chris3535
                      last edited by

                      @sirhenrythe5th actually i am probably over thinking this, can i do this on a pc? i am thinking you need to do this through the pi, but if i take the SD card out and put it in pc could i not copy and alter the file in question on there? that i can do lol

                      If so, how would i know when in file what to change and what to change it to?

                      C 1 Reply Last reply Reply Quote 0
                      • C
                        Chris3535 @Chris3535
                        last edited by

                        @sirhenrythe5th also looking at this webpage

                        https://github.com/midwan/amiberry/wiki/Using-Amiberry-WHDBooter-with-RetroPie-(Step-2)

                        are you on about where it says controller files, is that the one you navigate to the new copy?

                        sirhenrythe5thS 1 Reply Last reply Reply Quote 0
                        • sirhenrythe5thS
                          sirhenrythe5th @Chris3535
                          last edited by sirhenrythe5th

                          @chris3535 you are on the right path! :) Have a closer look here: https://github.com/midwan/amiberry/wiki/Setting-up-Input-Controllers

                          -- Retro-Achievements Username: SirALX --
                          RetroRatio: 1.88
                          Started Games beaten: 2,47%
                          Site Rank: 4382/93743 ranked users (TOP 4.76%)
                          Last seen in [The Legend of Zelda: Lost in Time (HACK) [N64], exploring Hyrule at Night]

                          C 1 Reply Last reply Reply Quote 0
                          • C
                            Chris3535 @sirhenrythe5th
                            last edited by

                            @sirhenrythe5th Thanks mate i have read that but still a bit confused ! :-(

                            So if i put SD card in pc and navigate to /opt/retropie/configs/all/retroarch/autoconfig

                            What will i see there that i need to make a copy off (sorry i am at work at moment otherwise id have checked first)

                            When i find the right file i make a copy then store it somewhere else (probably where you suggested atually)

                            Then i can open up this copy with a text editor and change the relevant setting so the left button works on joystick and not right one)

                            Then save the file.

                            Then open amiberry and go to paths and then direct it to the copy file i have just amended?

                            Does all this sound correct so far?

                            If so...when i open up the copy cfg file, what do i need to edit to make the left button work and not the right one?

                            Thank you for helping us with this by the way :-)

                            sirhenrythe5thS 1 Reply Last reply Reply Quote 0
                            • sirhenrythe5thS
                              sirhenrythe5th @Chris3535
                              last edited by sirhenrythe5th

                              @chris3535 way too complicated ;)
                              I dont have a PC at all since 2007, so i only use the pi itself or my smartphone via local network.

                              What i used for the amiberry input-mapping was only the Pi itself - in fact i used the "Midnight Commander" (just go to the terminal by pressing "F4" in ES and type "mc")
                              It is a great tool similar to the good old "Norton Commander" (MS-DOS) with the ability to sort and modify files directly with the Pi.

                              After opening the MC i created a new folder "AMIBERRY Inputs" in "/home/pi/" and copied the original configuration-file in there.
                              After that i used the "sudo nano"-command and remapped the buttons within this configuration. (i.e. "Button 0=B", "Button 1=A". btw: the orginal Amigas had only support for one button; the second is a feature by AMIBERRY).
                              Just saved that new config by pressing "CMD" + "X" and confirmed overwriting of the file with "Y".

                              Last step was to open the Amiberry GUI and rescan the paths as described above.

                              Worked like a charm and still does :)

                              -- Retro-Achievements Username: SirALX --
                              RetroRatio: 1.88
                              Started Games beaten: 2,47%
                              Site Rank: 4382/93743 ranked users (TOP 4.76%)
                              Last seen in [The Legend of Zelda: Lost in Time (HACK) [N64], exploring Hyrule at Night]

                              C 1 Reply Last reply Reply Quote 0
                              • C
                                Chris3535 @sirhenrythe5th
                                last edited by

                                @sirhenrythe5th ok..lol think i am getting there..just one little thing that confuses me.

                                When you say you used the "sudo nano" command what do you mean?

                                C sirhenrythe5thS 2 Replies Last reply Reply Quote 0
                                • C
                                  Chris3535 @Chris3535
                                  last edited by

                                  @sirhenrythe5th ahh do you mean open terminal and type in sudo nano followed by the path where the file is?

                                  So in your example you typed:

                                  sudo nano /home/pi/amiberry inputs/

                                  is this correct?

                                  1 Reply Last reply Reply Quote 0
                                  • sirhenrythe5thS
                                    sirhenrythe5th @Chris3535
                                    last edited by

                                    @chris3535 this is the command used to open and modify a file within Raspbian/Linux.

                                    What you can do to make it a bit easier:
                                    open MC -> navigate to the file you want to modify -> press "F2" to open the on screen menu -> navigate to "do something with the file" -> and type "sudo nano" ;)

                                    -- Retro-Achievements Username: SirALX --
                                    RetroRatio: 1.88
                                    Started Games beaten: 2,47%
                                    Site Rank: 4382/93743 ranked users (TOP 4.76%)
                                    Last seen in [The Legend of Zelda: Lost in Time (HACK) [N64], exploring Hyrule at Night]

                                    C 1 Reply Last reply Reply Quote 0
                                    • C
                                      Chris3535 @sirhenrythe5th
                                      last edited by

                                      @sirhenrythe5th Brilliant, thank you so much for your help and patience !

                                      I will do this tonight but i have my head round it now thanks to your instructions !!

                                      sirhenrythe5thS 1 Reply Last reply Reply Quote 0
                                      • sirhenrythe5thS
                                        sirhenrythe5th @Chris3535
                                        last edited by sirhenrythe5th

                                        @chris3535 you are welcome Chris!
                                        I was also very annoyed by the default button mapping and was glad to find this way to get it sorted.
                                        Feel free to ask again if you get stuck ;)

                                        -- Retro-Achievements Username: SirALX --
                                        RetroRatio: 1.88
                                        Started Games beaten: 2,47%
                                        Site Rank: 4382/93743 ranked users (TOP 4.76%)
                                        Last seen in [The Legend of Zelda: Lost in Time (HACK) [N64], exploring Hyrule at Night]

                                        C 1 Reply Last reply Reply Quote 0
                                        • C
                                          Chris3535 @sirhenrythe5th
                                          last edited by

                                          @sirhenrythe5th Thank you i will!

                                          i have another kinda issue but ill open a new thread for that later if i cant sort it.

                                          Basically some games (wings for example) seems to map itself to the mouse (i have a pi400) and i have not been able to make it work with the joystick yet. I had a quick play with the settings last night and i assume its something to do with the controls section in amiberry but couldn't get it to work, however i didn't spend that much time and will mess about tonight before bothering anyone on here .

                                          Thanks again !!

                                          1 Reply Last reply Reply Quote 0
                                          • C
                                            Chris3535
                                            last edited by Chris3535

                                            @sirhenrythe5th Sorry to bother you again, so I have made a amiberry folder and copied the config file over into it.

                                            I am in the config file now and I see the following

                                            Input_start_btn = "1"
                                            Input_exit_emulator_btn = "1"
                                            input_b_btn = "0"
                                            input_reset_btn = "0"
                                            input_a_btn = "3"

                                            which one do I change? and to what?

                                            sirhenrythe5thS 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.