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! Lr-Mame2003 Coin Buttons Not Mapping

    Scheduled Pinned Locked Moved Help and Support
    35 Posts 3 Posters 15.4k 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.
    • dankcushionsD
      dankcushions Global Moderator @BrockBoyts
      last edited by

      @BrockBoyts you shouldn't need to edit anything manually - just use the autoconfig in emulationstation described in the linked section :)

      BrockBoytsB 1 Reply Last reply Reply Quote 0
      • BrockBoytsB
        BrockBoyts @dankcushions
        last edited by

        @dankcushions

        Hi. Again, thank you for your help. I navigated to where the autoconfigs should be and there are none.

        This is what I have:
        pi@retropie: /opt/retropie/emulators/retroarch
        assets bin overlays retroarch.cfg shader share

        In the example video in the link you sent by Floob, he navigated to: /opt/retropie/emulators/RetroArch/configs
        and listed all of his game controllers autoconfigs. There he opened the configs and assigned custom hotkeys etc.

        Where do I find those configs on my pi (v 3.8.1) and is that the correct place to customize buttons like my coin button?

        I currently have my 2 player Xin-Mo configs in the config/all directory (starting on line 490) so it is more of a hardcode way of doing it. Would it be best to delete that and put it in the autoconfig for the Xin-Mo controller? If so, I can't seem to find it.

        Thanks!

        dankcushionsD 1 Reply Last reply Reply Quote 0
        • dankcushionsD
          dankcushions Global Moderator @BrockBoyts
          last edited by

          @BrockBoyts

          Retroarch controls have been integrated into EmulationStation and will be the first thing you see when you boot from the RetroPie SD image the first time. You can also access it from the start menu within emulationstation under the configure input option

          just do this :) bind your coin buttons as R3 and L3, then open mame2003 and bind insert coin for p1 and 2 via the tab menu.

          BrockBoytsB 1 Reply Last reply Reply Quote 0
          • BrockBoytsB
            BrockBoyts @dankcushions
            last edited by

            @dankcushions

            When I hit the start button in ES and access the Main Menu, I go to "Configure Input" and there is no R3 or L3. It only lets me assign to these controls:

            D-Pad Up
            D-Pad Down
            D-Pad Left
            D-Pad Right
            Start
            Select
            Bottom
            A
            B
            X
            Y
            Left Bottom
            Right Bottom
            Left Top
            Right Top
            Left Thumb
            Right Thumb
            Left Analog Up
            Left Analog Down
            Left Analog Left
            Left Analog Right
            Right Analog Up
            Right Analog Down
            Right Analog Left
            Right Analog Right

            I tried to assign the coin buttons to Left Top and Right top but the buttons were still not being detected in the tap input menu in Mame.

            Thoughts?

            dankcushionsD 1 Reply Last reply Reply Quote 0
            • dankcushionsD
              dankcushions Global Moderator @BrockBoyts
              last edited by dankcushions

              @BrockBoyts sorry, yeah it's "left thumb" and "right thumb". it doesn't really matter what buttons you pick just as long as it isn't something you already use for your other buttons.

              top left (L1) and top right (L2) should be detected, though. not sure what's going on there.

              BrockBoytsB 1 Reply Last reply Reply Quote 0
              • BrockBoytsB
                BrockBoyts @dankcushions
                last edited by

                @dankcushions

                Hey. I assigned the coin buttons to "left thumb" and "right thumb" and when I went into Mame to configure under Tab the buttons were still not detected.

                I am at a loss too.

                dankcushionsD 1 Reply Last reply Reply Quote 0
                • dankcushionsD
                  dankcushions Global Moderator @BrockBoyts
                  last edited by

                  @BrockBoyts very strange! can you not reassign insert coin to any of your other buttons via TAB? like the various arcade buttons? (I know this isn't what you ultimately want to do, but it might help troubleshoot)

                  BrockBoytsB 1 Reply Last reply Reply Quote 0
                  • BrockBoytsB
                    BrockBoyts @dankcushions
                    last edited by BrockBoyts

                    @dankcushions

                    The coin buttons do nothing when I try to assign them in the tab menu for Lr-mame2003. Doesn't matter what button.

                    I bought a button kit from GameRoomSolutions.com. There is a guide on how to setup the config files to work with their button kit. When I followed these steps everything worked great except the coin buttons. The xin-mo buttons end up being hardcoded in the config/all file which I think might cause issues if I want to use usb snes controllers in the future too.

                    Do you see anything in this setup that could cause the issue with the coin buttons not able to be assigned in RetroArch/Lr-mame2003?

                    Link: https://gameroomsolutions.com/raspberry-pi-3-retropie-setup-easy-guide/

                    dankcushionsD 2 Replies Last reply Reply Quote 0
                    • dankcushionsD
                      dankcushions Global Moderator @BrockBoyts
                      last edited by

                      @BrockBoyts oh for sure. in fact, manually adjusting the config like that is the wrong thing to do for retropie - the automatic config i linked is the way to do it. now you're left with something of a mess.

                      1 Reply Last reply Reply Quote 0
                      • dankcushionsD
                        dankcushions Global Moderator @BrockBoyts
                        last edited by

                        @BrockBoyts said in Help! Lr-Mame2003 Coin Buttons Not Mapping:

                        @dankcushions

                        The coin buttons do nothing when I try to assign them in the tab menu for Lr-mame2003. Doesn't matter what button.

                        also, that's not quite what I asked. you need to try other buttons (not the coin buttons). can you assign those as insert coin in mame? if so, that shows that it's your config adjustments being wrong for your insert coin buttons only and not some mame issue.

                        1 Reply Last reply Reply Quote 0
                        • dankcushionsD
                          dankcushions Global Moderator
                          last edited by dankcushions

                          ok here's the problem - that guide says nothing about your extra 2 insert coin buttons. in the pictures and config it only lists 10 buttons for each player. if you want to add an extra one for each player, and make it behave with this horrible approach they have, you need to add to the config. eg:

                          input_player1_r3_btn = 10
                          input_player2_r3_btn = 11
                          

                          now, I don't know what your setup is - whether these insert coin buttons are isolated to each player (like the face buttons) in which case the number would be the same for each, or whether they are just extra buttons for player1 (like the admin buttons) in which case they will be different numbers for each. I also don't know what number they would be.

                          BrockBoytsB 2 Replies Last reply Reply Quote 0
                          • BrockBoytsB
                            BrockBoyts @dankcushions
                            last edited by BrockBoyts

                            @dankcushions

                            To better answer your question, I CAN assign other buttons to insert coin in the tab menu in mame. So it isn't mame but my config that is the problem.

                            I have no desire to stick to gameroomsolutions button setup if it creates problems. In fact, last night I deleted those configs and restored the original default configs when installing retropie 3.8.1. I am starting from scratch and want to do it right.

                            I am attaching a picture. The numbers in the picture corresond to the pins on the xin-mo board. When I run a jstest on the xin-mo the #1 button is actually listed as #0 button on the raspberry pie. So button 3 is listed as button 2 on the raspberry pie. I hope that makes sense.

                            If this is the case, would I need to put the config from GameRoomSolutions into the automated config file for each xin-mo (js0 and js1)? I ask because when I do the automated setup on the start menu in ES I don't have any options to setup my 4 navigation buttons.
                            0_1471022171614_MyXinMo_Setup.jpg

                            1 Reply Last reply Reply Quote 0
                            • BrockBoytsB
                              BrockBoyts @dankcushions
                              last edited by BrockBoyts

                              @dankcushions

                              UPDATE
                              Good news! I guess I did not delete the es_input.cfg that I made via GameRoomSolutions guide. I deleted the retroarch config and I thought I deleted both but I guess not. Once I deleted it I was good to go.

                              Now that I have the coin buttons working, where do I map my navigation and hotkeys for my four white LED buttons. I liked how I could bring up menus, exit games and use the mode button for hotkeys like load, save and volume control.

                              Would I do that in the auto config files?

                              dankcushionsD 1 Reply Last reply Reply Quote 0
                              • dankcushionsD
                                dankcushions Global Moderator @BrockBoyts
                                last edited by

                                @BrockBoyts
                                autoconfigs won't matter if you've got overrides in /opt/retropie/configs/all/retroarch.cfg - autoconfigs are used in the absence of any manual configuration. don't change anything - let's work with what you have.

                                if the two coin buttons are (according to your diagram) player 2 buttons 9 and 10, which come back as player 2 8 and 9 in jstest, then you need to add this to retroarch.cfg, along with all the stuff that you've already added according the guide:

                                input_player2_r3_btn = 8
                                input_player2_l3_btn = 9

                                then they should be bindable in mame, if I'm reading it right!

                                dankcushionsD 1 Reply Last reply Reply Quote 0
                                • dankcushionsD
                                  dankcushions Global Moderator @dankcushions
                                  last edited by dankcushions

                                  @dankcushions oh just read that you've got the coin buttons working but broken hotkeys? ok I think that should be simply adding this to /all/retroarch.cfg :

                                  input_enable_hotkey_btn = 9
                                  input_exit_emulator_btn = 8
                                  input_menu_toggle_btn = 1
                                  input_load_state_btn = 2
                                  input_save_state_btn = 5
                                  input_reset_btn = 3
                                  input_state_slot_increase_axis = +0
                                  input_state_slot_decrease_axis = -0
                                  input_volume_up_axis = -1
                                  input_volume_down_axis = +1

                                  (this is directly from the guide linked - if you did anything differently than that you need to repeat it)

                                  BrockBoytsB 2 Replies Last reply Reply Quote 0
                                  • BrockBoytsB
                                    BrockBoyts @dankcushions
                                    last edited by BrockBoyts

                                    @dankcushions

                                    Cool! Thank you! I will give this a shot. It's starting to make more sense to me.

                                    I am staying away from the hard coding in configs/all now (at least for the buttons used for gameplay).

                                    I will let you know how it goes.

                                    1 Reply Last reply Reply Quote 0
                                    • BrockBoytsB
                                      BrockBoyts @dankcushions
                                      last edited by BrockBoyts

                                      @dankcushions said in Help! Lr-Mame2003 Coin Buttons Not Mapping:

                                      input_enable_hotkey_btn = 9
                                      input_exit_emulator_btn = 8
                                      input_menu_toggle_btn = 1
                                      input_load_state_btn = 2
                                      input_save_state_btn = 5
                                      input_reset_btn = 3
                                      input_state_slot_increase_axis = +0
                                      input_state_slot_decrease_axis = -0
                                      input_volume_up_axis = -1
                                      input_volume_down_axis = +1

                                      Hey. So I mapped the configs above and I don't think it is working correctly because the inputs don't distinguish between which player the "9" and "8" belong too. Do I need to add player 1 or something in the input commands?

                                      dankcushionsD 1 Reply Last reply Reply Quote 0
                                      • dankcushionsD
                                        dankcushions Global Moderator @BrockBoyts
                                        last edited by

                                        @BrockBoyts only player 1 controls hotkeys.

                                        BrockBoytsB 2 Replies Last reply Reply Quote 0
                                        • BrockBoytsB
                                          BrockBoyts @dankcushions
                                          last edited by

                                          @dankcushions
                                          Hey. I still am having a hard time getting the hotkeys to work. When I copy and past the inputs into the all/retroarch.cfg file (line 490) it moves the coin inputs to the left two white navigation buttons and the current coin buttons become disabled. The rest of the navigational buttons don't work either. I will just keep trying to figure this out.

                                          I noticed there are two retroarch.cfg files. Which should I use?

                                          file1:
                                          /opt/retropie/emulators/retroarch/retroarch.cfg

                                          file2:
                                          /opt/retropie/configs/all/retroarch.cfg

                                          1 Reply Last reply Reply Quote 0
                                          • BrockBoytsB
                                            BrockBoyts @dankcushions
                                            last edited by

                                            @dankcushions
                                            Would it be better to configure the hotkeys in the auto generated confi for the Xin-Mo joypad instead of hardcoding it in all/retroarch.cfg?

                                            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.