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

    [Solved] Map SPACE to be useable in dialog menus?

    Scheduled Pinned Locked Moved Help and Support
    map key buttonshelldialog
    6 Posts 2 Posters 637 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.
    • E
      EctoOne
      last edited by EctoOne

      Is it possible to map SPACE to a button so that it can be used in dialog menus?

      As I was working on my AutoPatchSelector script, I noticed that I could not select anything in the file selector with just a controller. It needs SPACE to select.
      Now I'm working on a GUI for the RandomMetroidSolver python script and noticed the same problem with the checklist option. For my personal use I can set my favorites directly in the script but there is at least one option I would like to choose whenever I want. I probably could move that option to its own menu but that's kind of dirty and since I kinda want to use SPACE for other stuff, it would be great if that is somehow possible.

      1 Reply Last reply Reply Quote 0
      • S
        sleve_mcdichael
        last edited by sleve_mcdichael

        @EctoOne how do you, or how will you, launch your script? If it's launched through the RetroPie menu in EmulationStation, it should already run with joy2key enabled mapping Space to the south face button.

        If you'll be launching it manually, you could probably just activate the joy2key function inside your script:

        /opt/retropie/admin/joy2key/joy2key start
        

        It looks like it's just running a script in the background that watches for joypad events, so you probably want to shut it back off when you exit:

        /opt/retropie/admin/joy2key/joy2key stop
        
        E 1 Reply Last reply Reply Quote 0
        • E
          EctoOne @sleve_mcdichael
          last edited by EctoOne

          @sleve_mcdichael I am starting it with ES (well, I put it in the retropiemenu folder if that's what you mean) and my south face button is ENTER. I have tried all other buttons, that's why I am asking. I will test if adding the joy2key line to my script helps later.

          S 1 Reply Last reply Reply Quote 0
          • S
            sleve_mcdichael @EctoOne
            last edited by

            @EctoOne said in Map SPACE to be useable in dialog menus?:

            and my south face button is ENTER. I have tried all other buttons, that's why I am asking.

            What do the other buttons do? They're supposed to be enter, space, esc, and tab:

            https://github.com/RetroPie/RetroPie-Setup/blob/2431ec886f042b55812bf9d2f81b60b6a0ffede1/scriptmodules/admin/joy2key.sh#L53-L60

            E 1 Reply Last reply Reply Quote 0
            • E
              EctoOne @sleve_mcdichael
              last edited by

              @sleve_mcdichael I don't know what happened, but now they do work as intended.

              I did start the retropie config to test if it's working there, which it does. And now it works in my scripts as well.
              I'm not sure if it worked before and I'm just an idiot and remembered wrong or if launching the retropie config (which I have done before obviously) changed anything.

              Wel, guess that's solved.

              S 1 Reply Last reply Reply Quote 1
              • S
                sleve_mcdichael @EctoOne
                last edited by

                @EctoOne said in [Solved] Map SPACE to be useable in dialog menus?:

                @sleve_mcdichael I don't know what happened, but now they do work as intended.

                (...)

                Wel, guess that's solved.

                Hey, it happens to the best of us.

                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.