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

    non-libretro emulator for 4.8 rpi4

    Scheduled Pinned Locked Moved Help and Support
    4.8 rpi4
    28 Posts 5 Posters 2.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.
    • FloobF
      Floob @sshht
      last edited by Floob

      @sshht
      For what its worth you can see me mucking about several years ago here disabling the hot key and setting the keyboard mapping.
      https://bit.ly/3tMUaqL

      From what I remember the hotkey will still be fine for the controller as it wont read the keyboard binds it'll use its own config.

      Please read the Docs before asking a new question.
      RetroPie Help Guides: https://goo.gl/3gcNsT

      S 1 Reply Last reply Reply Quote 0
      • S
        sshht @mitu
        last edited by

        @mitu
        Used the EmulationStation input mapping menu that you get when you first load retropie.

        mituM 1 Reply Last reply Reply Quote 0
        • S
          sshht @Floob
          last edited by

          @Floob
          Thanks. I'll check that out.
          Do you use USB controllers in addition to your bartop buttons?

          I use both usb controllers and bartop buttons + IPAC (which emulates keyboard)

          1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @sshht
            last edited by

            @sshht said in non-libretro emulator for 4.8 rpi4:

            Used the EmulationStation input mapping menu that you get when you first load retropie

            Then it means the configuration settings are saved in the global retroarch.cfg. If you've chosen a hotkey enable button during setup, it was set there. You can override it, disabling the hotkey, per-system (arcade for instance), so that you can use the Esc mapped key to exit, but this also means that any hotkey dependent actions should also be disabled - save/load/reset/menu.

            S 1 Reply Last reply Reply Quote 0
            • S
              sshht @mitu
              last edited by

              @mitu

              Yes, I really only use the retroarch.cfg in the \config\all directory for everything.

              I attempted to disabled the hotkey function and add the exit function to my \config\all\arcade\retroarch.cfg file using the following, but still didn't work:

              input_remapping_directory = "/opt/retropie/configs/arcade/"
              input_enable_hotkey = "nul"
              input_exit_emulator = "escape"

              #include "/opt/retropie/configs/all/retroarch.cfg"

              1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator
                last edited by

                The configuration looks correct. What emulator are you using when testing it ? Do you also have a gamepad connected ?

                S 1 Reply Last reply Reply Quote 0
                • S
                  sshht @mitu
                  last edited by

                  @mitu

                  I'm using lr-mame2003. And yes, i have the usb gamepads connected while I launch the arcade.

                  I bet if I disconnect the gamepads I could exit the game with 'esc' key on keyboard (or IPAC since that's mapped to esc).

                  FloobF mituM 2 Replies Last reply Reply Quote 0
                  • FloobF
                    Floob @sshht
                    last edited by

                    @sshht
                    Out of interest, what happens if you hold the hotkey on the controller, and then press exit on the IPAC?

                    Please read the Docs before asking a new question.
                    RetroPie Help Guides: https://goo.gl/3gcNsT

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      sshht @Floob
                      last edited by

                      @Floob

                      Good idea. Yes, if I hit the hotkey on my USB gamepad and then hit ESC keyboard key / IPAC button that is mapped to ESC, then it exits the arcade game successfully.

                      I guess I could program a combination of SELECT + ESC on my IPAC instead of just using ESC eh?

                      FloobF 1 Reply Last reply Reply Quote 0
                      • FloobF
                        Floob @sshht
                        last edited by

                        @sshht
                        It might help if you zip up or pastebin your retroarch.cfgs in case there is something obvious in one of them. I'm assuming you dont have a game specific one.

                        Please read the Docs before asking a new question.
                        RetroPie Help Guides: https://goo.gl/3gcNsT

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          sshht @Floob
                          last edited by

                          @Floob

                          attached retroarch cfg below

                          retroarch-arcade

                          retroarch-all

                          retroarch-mame-libretro

                          FloobF 1 Reply Last reply Reply Quote 0
                          • FloobF
                            Floob @sshht
                            last edited by

                            @sshht
                            And if you comment out the hotkey enable button line in your controller file, does your IPAC exit with the single esc press?
                            I think you're right in the easiest way would be for you to use the hotkey on the IPAC unless you wrote a script to change the controller cfg based on the system that you loaded.

                            Please read the Docs before asking a new question.
                            RetroPie Help Guides: https://goo.gl/3gcNsT

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              sshht @Floob
                              last edited by

                              @Floob

                              Are you saying to comment out the "input_enable_hotkey_btn = "6" found in my \config\all\retroarch-joypads\USB,2-axis 8-button gamepad .cfg ?

                              1 Reply Last reply Reply Quote 0
                              • mituM
                                mitu Global Moderator @sshht
                                last edited by

                                @sshht said in non-libretro emulator for 4.8 rpi4:

                                I bet if I disconnect the gamepads I could exit the game with 'esc' key on keyboard (or IPAC since that's mapped to esc).

                                Have you tried that ? Disconnecting the gamepads will ensure no hotkey gets set in any input profile.

                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  sshht @mitu
                                  last edited by

                                  @mitu

                                  Yes, when I disconnect the gamepads, then i can use ESC to get the arcade game.

                                  So when I use LR-mame2003 or any LR based emulator with my gamepads connected I can't use the 'esc' key to exit an arcade game.
                                  It's like I need to disable the gamepads and hot key when loading libretro emulators in arcade.

                                  mituM 1 Reply Last reply Reply Quote 0
                                  • mituM
                                    mitu Global Moderator @sshht
                                    last edited by mitu

                                    @sshht said in non-libretro emulator for 4.8 rpi4:

                                    It's like I need to disable the gamepads and hot key when loading libretro emulators in arcade.

                                    If you're sure you won't be using any gamepad for the Arcade games, you can try disabling the gamepads by adding to retroarch.cfg (for the arcade system):

                                    input_player1_joypad_index=nul
                                    input_player2_joypad_index=nul
                                    input_player3_joypad_index=nul
                                    input_player4_joypad_index=nul
                                    
                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      sshht @mitu
                                      last edited by

                                      @mitu said in non-libretro emulator for 4.8 rpi4:

                                      input_player1_joypad_index=nul
                                      input_player2_joypad_index=nul
                                      input_player3_joypad_index=nul
                                      input_player4_joypad_index=nul

                                      Weird, I added in those lines you said to my retroarch.cfg in the arcade folder and restarted emulationstation, but when loading lr-mame2003 arcade game it still detected the gamepads and of course ESC key wouldn't exit, but the gamepads still exited with select-start.
                                      Any other ideas to disable the gamepads strictly in the arcade system?

                                      mituM 1 Reply Last reply Reply Quote 0
                                      • mituM
                                        mitu Global Moderator @sshht
                                        last edited by

                                        @sshht Can you get a verbose log when running the arcade game and post it on pastebin.com ?

                                        S 1 Reply Last reply Reply Quote 0
                                        • S
                                          sshht @mitu
                                          last edited by

                                          @mitu

                                          Here is the verbose log running asteroids. verbose log

                                          Here is my arcade retroarch: arcade retroarch.cfg

                                          mituM 1 Reply Last reply Reply Quote 0
                                          • mituM
                                            mitu Global Moderator @sshht
                                            last edited by

                                            @sshht Hm, I thought that would disable the gamepads.

                                            Try adding just

                                            input_autodetect_enable  = false
                                            

                                            and no gamepad detection would be performed, leaving only keyboard devices to work. Note - this might disable also any mice, so if you have a spinner, it could disable it too.

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