RetroArch.cfg

Hello, running RetroArch on Raspberry Pi using PetRock’s RetroPi script. I am currently attempting to use a XArcade stick (no trackball) as a control, but am having trouble getting RetroArch to recognize the changes made to the RetroArch.cfg file. I have verified that the XArcade works in EmulationStation. Please note that the XArcade is recognized by the system as a keyboard, so all of the mapping changes need to be to the keyboard.

The changes I have made follow:

Keyboard input. Will recognize normal keypresses and special keys like “left”, “right”, and so on.

Keyboard input, Joypad and Joyaxis will all obey the “nul” bind, which disables the bind completely,

rather than relying on a default.

input_player1_a = “5? input_player1_b = “c” input_player1_y = “lshift” input_player1_x = “z” input_player1_start = “1? input_player1_select = “3? input_player1_l = “lctrl” input_player1_r = “lalt” input_player1_left = “4? input_player1_right = “6? input_player1_up = “8? input_player1_down = “2?

input_player2_a = “e” input_player2_b = “w” input_player2_y = “]” input_player2_x = “6? input_player2_start = “2? input_player2_select = “4? input_player2_l = “a” input_player2_r = “s” input_player2_left = “d” input_player2_right = “g” input_player2_up = “r” input_player2_down = “f”

input_player1_l2 =

input_player1_r2 =

input_player1_l3 =

input_player1_r3 =

Be sure it’s even loading the config first. Also, if you want to bind keyboard numerals, use num1, num2, num3, etc.

Ok, thanks! I will modify the config to use the keyboard numerals. How do I make sure that it is loading the config? Is there a way to write to a log in RetroArch? I am currently running the emulators through EmulationStation and the command it is using is:

COMMAND=/home/pi/RetroPie/supplementary/runcommand/runcommand.sh 1 “retroarch -L /home/pi/RetroPie/emulatorcores/pocketsnes-libretro/libretro.so --config /home/pi/RetroPie/configs/all/retroarch.cfg --appendconfig /home/pi/RetroPie/configs/snes/retroarch.cfg %ROM%”

My changes above were made on the “/home/pi/RetroPie/configs/all/retroarch.cfg” file. If I can generate a log file in RetroArch, I will add that syntax to the EmulationStation command.

EDIT: I am using the mapped keys for the XArcade from: http://www.xgaming.com/support/questions/17/PC+%26+MAC+(Mode1)+Button+Layout

Did some more testing last night. Ran RetroArch using the following command:

retroarch -L /home/pi/RetroPie/emulatorcores/pocketsnes-libretro/libretro.so --config /home/pi/RetroPie/configs/all/retroarch.cfg /home/pi/RetroPie/roms/snes/Alien3.smc

If I use “num5”, “num2”, “num8” etc, in the Retroarch.cfg, it maps the inputs to the top row number keys, but not the num pad keys, which is what the Xarcade is using. I made sure I had NumLock on so that wasn’t the issue. When I went in and looked at the keyboard output via “showkey -s” both the number row and number pad keys were the same. Not sure where to go next but to ask if we have any documentation as to the correct key codes that can be put into the RetroArch.cfg?

Thanks so much for your assistance!

Oh … keypad0, keypad1 etc should do the trick then. Check here: https://github.com/Themaister/RetroArch/blob/master/input/input_common.c#L613

Oh heck yes! I think this will almost do the trick. Last question, and I’m sorry if I missed it, but what is the mapping for “]”?

I am trying to make a catalog of these files so others can try different remotes easily if you have an all ready configured file please upload it here http://thebestunlock.com/retroarch.cfg for others to try out thanks