Default input for keyboards
-
@vultrix said in Default input for keyboards:
Am I missing something blatant or do I really have to configure each emulator by hand??
Configure your keyboard as input in Emulationstation and it will be automatically configured for all RetroArch based emulators. You probably messed some of the configuration files already by erasing/generating them.
-
Sorry, meant to say that I already tried that. Emulation Station isn't updating the retroarch.cfg files at all.
-
The auto-configuration from Emulationstation does not modify any
retroarch.cfg
files, instead it creates an auto-configuration for the gamepad in/opt/retropie/configs/all/retroarch-joypads
, from where it's loaded by any core.
In your case, it seems the keyboard mapping is not saved in that folder, so you'll have to manually create your mapping. The default mapping is described at https://www.libretro.com/index.php/getting-started-with-retroarch/, where you can also see how you can map your keyboard. Use theRetroArch
entry in the RetroPie system to start RetroArch without any core loaded to do this configuration, then save it. -
@mitu for a keyboard the input configuration edits the global retroarch.cfg.
If that's not happening then it's likely the XML config to trigger the auto configuration has been removed from the emulation station folder (es_input.cfg).
As user has been removing default configs best bet is for them to start with a fresh image imho.
-
This is default es_input.cfg
<?xml version="1.0"?> <inputList> <inputAction type="onfinish"> <command>/opt/retropie/supplementary/emulationstation/scripts/inputconfiguration.sh</command> </inputAction> </inputList>
-
@cyperghost I'm using something similar (keyboard input) and ES does update my retroarch.cfg file. Here is part of my es_input.cfg. I think this only setup Player1 configs in retroarch.cfg and I had to manually setup the P2 keyboard controls.
<?xml version="1.0"?> <inputList> <inputConfig type="keyboard" deviceName="Keyboard" deviceGUID="-1"> <input name="a" type="key" id="1073742048" value="1"/> <input name="b" type="key" id="1073742050" value="1"/> <input name="down" type="key" id="1073741905" value="1"/> <input name="left" type="key" id="1073741904" value="1"/> <input name="lefttrigger" type="key" id="122" value="1"/> <input name="right" type="key" id="1073741903" value="1"/> <input name="righttrigger" type="key" id="120" value="1"/> <input name="select" type="key" id="53" value="1"/> <input name="start" type="key" id="49" value="1"/> <input name="up" type="key" id="1073741906" value="1"/> <input name="x" type="key" id="32" value="1"/> <input name="y" type="key" id="1073742049" value="1"/> </inputConfig> <inputAction type="onfinish"> <command>/opt/retropie/supplementary/emulationstation/scripts/inputconfiguration.sh</command> </inputAction> </inputList>
-
Also, because it took me a while to find it out and it might save you some time - the ID you need is a decimal value of the SDL keyboard ID.
-
@stoney66 Can't advise from just part of the config - it needs to contain the bits @cyperghost mentioned above.
-
@stoney66 I don't know as I do not use keyboards. But the command in es_input.cfg automatically setups the config for retroarchs joypad. This has nothing to do with retroarch.cfg at all. The path for retorarch auto config joypads is
/opt/retropie/configs/all/retroarch-joypads/
and will be build out of es_input.cfg file due the command I've posted above.@BuZz yes, thank you
-
@BuZz sorry I put whole file there now, I was just showing the main poster that I have keyboard values in this file. My setup works fine.
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.