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

    Using a Single Button to Exit Games?

    Scheduled Pinned Locked Moved Help and Support
    exit game
    6 Posts 3 Posters 6.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.
    • S
      soonerdoc
      last edited by

      Is the only way to exit a game using a two button combo (currently select and start)?

      I realize the select button is "enabling" the hotkey and start is the "exit". Is there anyway to exit a game using a single button? Getting ready to build mame cab and would like to be able to do this with a single button if possible.

      Thanks!

      meleuM 1 Reply Last reply Reply Quote 0
      • meleuM
        meleu @soonerdoc
        last edited by

        @soonerdoc the "pure retroarch" solution is to use a keyboard, there's no way to achieve it using joysticks.
        But we talked about an alternate solution here.

        • Useful topics
        • joystick-selection tool
        • rpie-art tool
        • achievements I made
        1 Reply Last reply Reply Quote 0
        • CapemanC
          Capeman
          last edited by

          Yes, if you build a mame cab, use a keyboard encoder for your controls, all secondary functions can be set alongside your controls as single button presses by disabling the hotkey. This only works on keyboard though, disabling hotkey on gamepad input will disable all the secondary functions.

          Use something like this and map your controls to keys. It's the best way to do arcade cabs.

          Look at the MINI-PAC (non bundle is $30)
          http://www.ultimarc.com/store/section.php?xSec=3

          Vector Artist, Designer and Maker of Stuff: Laser Cut Atari / Pixel Theme Bartop

          S 1 Reply Last reply Reply Quote 0
          • S
            soonerdoc @Capeman
            last edited by

            @Capeman

            I am using a Xin-Mo dual controller. Isn't this basically the same thing as the minipac you suggested?

            1 Reply Last reply Reply Quote 0
            • CapemanC
              Capeman
              last edited by Capeman

              No, they are literally 2 completely different types of HID input.

              They look similar, but the XIN-MO is seen by the Raspberry Pi as two PS3 gamepads. The inputs will correspond to gamepad button 1, gamepad button 2 etc. It's the equivalent of connecting 2 wired ps3 controllers through USB. In retropie, gamepads cannot do alternate inputs (save state / load state / hard pause / exit emulator, etc. ) without binding a hotkey and pressing 2 buttons at once.

              The Mini-Pac is a keyboard encoder. You will literally get keypresses from it, each button will correspond to a button on a keyboard. They are factory set to mame's default keybinding.
              0_1490878296800_Typical_mame_controls.jpg.

              Keyboards have alot more options than gamepads due to their vastly larger number of available inputs. On a keyboard, all extra keys can be set a single keypresses without binding a hotkey. The minipac also has a dedicated escape key pinout, so emulators can be exited with one single keypress.

              It's a very stable way to do controls on an arcade cab since you can hard code them into retroarch.cfg and then make per-system retroarch.cfg with alternate keybindings if you wish.

              Vector Artist, Designer and Maker of Stuff: Laser Cut Atari / Pixel Theme Bartop

              S 1 Reply Last reply Reply Quote 3
              • S
                soonerdoc @Capeman
                last edited by

                @Capeman

                Thank you for the info. Very educational and very much appreciated!!

                1 Reply Last reply Reply Quote 1
                • 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.