Keybindings via GPIO
-
Hi !
The GPIO implemntation is done with an joystick driver. Is there a possibility to have also Keybindings mapped via GPIO (eg. ESC, F1 …)
The GPIO driver is https://github.com/digitalLumberjack/mk_arcade_joystick_rpi is create joystick special files detected as simple joysticks by SDL. You can't bind the gpio events mapped to keyboard. But recalboxOS doesn't need any keyboard to work.
If not is it possible to implement adafruit retrogame gpio input?
No because it would be useless as recalbox works well with joysticks.
Is it possible to bind the joystick driver to use other GPIO pins?
Yes if you recompile the driver changing the button mapping. It will never be an option in recalbox as i want the system to stay user friendly (and noob friendly)
-
Thanks for your fast response. I asked for rebinding, so that I can use the portapi image or recalboxos vice versa without recabeling the whole arcade. In this case it makes sense to do one one system a redefineing the keys. But in this case I think I will do it on the portapi image.
-
That would be the best solution, because even if you recompile you own version of mk_arcade_joystick_rpi on the recalbox, an update would erase overwrite your module with the original one...
-
When I only use GPIO based Josystick, what is the Hotkey there? On the pinout I only can see Start and Select.
-
You can use select, no shortcut is set for select.
-
thank you. I just finished the cabeling in my cabinet. I enabled GPIO Interface in the Settings, but it seems that they are not working on my RPi2. Is there a way to troubleshoot this? I verfied the cabeling twice. When I try to configure the controller it detects 2 controllers. I only have an 1 Player cabinet. But I think this could not be an issue only to do the cabeling for player 1.
-
A small update: With a RaspberryPi B+ the GPIO Controller works. Only with my RaspberyPi 2 it does not work. PS: When I assign the Hotkey to the Select button is not a real good solution. When I do that it cloeses the emulations wenn I need to use the select button.
-
A small update: With a RaspberryPi B+ the GPIO Controller works. Only with my RaspberyPi 2 it does not work.
I openened an issue https://github.com/digitalLumberjack/recalbox-os/issues/24
When I assign the Hotkey to the Select button is not a real good solution. When I do that it cloeses the emulations wenn I need to use the select button.
That's a bug since the shortcut to exit games is : Hotkey + Start Could you tell me more about that ?
-
When I assign the Hotkey to the Select button is not a real good solution. When I do that it cloeses the emulations wenn I need to use the select button.
It's not a bug. I found a cabeling error on my side. It works as it should - Hotkey + Start to exit. Do you need more information about the GPIO stuff on RPi2?
-
I found why it doesn't work, thank you for the feedback. It will be corrected in the next release
-
Thank you, I hope it does not take too long until the next release