[Solved] Map SPACE to be useable in dialog menus?
-
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. -
@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
-
@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.
-
@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:
-
@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.
-
@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.
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.