Keyboard Remapping not working
-
I've seen several people talking about this, but I've not been able to find an answer that works for me. I'm trying to remap the controls for all emulators to conform to the following setup:
{ 22, KEY_LEFT }, // Joystick (4 pins)
{ 23, KEY_RIGHT },
{ 17, KEY_UP },
{ 27, KEY_DOWN },
{ 24, KEY_Z }, // A/Fire/jump/primary
{ 10, KEY_X }, // B/Bomb/secondary
{ 18, KEY_ESC }, // Select button
{ 4, KEY_ENTER }, // Start button
{ 9, KEY_S }, // X button
{ 25, KEY_A }, // Y button
{ 11, KEY_Q }, //L shoulder
{ 8, KEY_W }, //R shoulderThese configurations are determined by plugging buttons directly into GPIO pins on the Pi. I could potentially remap them, but I would like for them to function in all emulators-so I thought if I just update the config file for each emulator, then it should work-right?
For instance, I've gone to configs/gba/retroarch.cfg, and changed to
input_player1_b = “x”
but that doesn't change the way the game behaves whatsoever. It doesn't respond to my key presses at all.I used a USB xbox controller, which worked fine, and all of the controls work just fine in emulation station-it is ONLY when a ROM loads that I have problems!
On top of that, I also need to remap the hotkeys to use these buttons (there are guides out there to do this, but I wanted to get the games functioning first). Can someone help me get my controls working? Thank you!
-
@bfenty said in Keyboard Remapping not working:
For instance, I've gone to configs/gba/retroarch.cfg, and changed to
input_player1_b = “x”
but that doesn't change the way the game behaves whatsoever. It doesn't respond to my key presses at all.Is it possible that your edits in retroarch.cfg have curly "smart" quotes like they do in your message here? I have seen it before from folks trying to setup inputs in retroarch.cfg. Smart quotes don't work at all. They have to be like this:
input_player1_b = "x"
not like this:input_player1_b = “x”
. -
@caver01 hmmm I will look into that-I thought I just used the quotes that were already there, but I will check.
-
Looks like that is a problem. Having some issues with power to my pi project right now, but I will update here once I find out if that actually resolves it. Thanks for the help!
-
@caver01 said in Keyboard Remapping not working:
Is it possible that your edits in retroarch.cfg have curly "smart" quotes like they do in your message here? I have seen it before from folks trying to setup inputs in retroarch.cfg. Smart quotes don't work at all. They have to be like this:
input_player1_b = "x"
not like this:input_player1_b = “x”
.Just wanted to come back and say a huge thank you! This was a great catch on your part, and it completely fixed my issues. My builtin gamepad is working perfectly now.
-
@bfenty Glad you got it working! That problem stumped me once or twice--it's sometimes good just to have another pair of eyes on it.
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.