adafruit / Adafruit-Retrogame

Raspberry Pi GPIO-to-virtual-keyboard utility for classic game emulators
https://learn.adafruit.com/retro-gaming-with-raspberry-pi
355 stars 123 forks source link

Using RetroPie 2.2 with GPIO no longer works #5

Closed Wilstorm closed 10 years ago

Wilstorm commented 10 years ago

I just finished building a home arcade kit called Porta-Pi that runs RetroPie 1.9.1 and uses Retrogame as the input. It works wonderfully and is a great alternative to buying a dedicated input device. Not to mention I actually learned something working on something I love to do! :)

I recently tried to upgrade RetroPie to version 2.2 and it longer works. After some searching the programmer of RetroPie/EmulationStation posted this on a forum:

"I have the same problem as you. I asked Aloshi (creator of EmulationStation) on the Raspberry Pi Forums and this is what he said:

This probably has to do with the change from SDL 1.2 to SDL 2. SDL2 uses evdev for input handling (in the console in the Pi). I don’t remember what SDL 1.2 uses. Not much I can do about this, sorry."

I don't know anything about programming but I have learned a lot about Unix just doing this project and really enjoyed it. Is there any chance in a future version this could possibly incorporated into retrogame.c. It's a fantastic piece of software and I really appreciate all the work put in to it.

Also I use to use an older version that didn't require downloading ncurses and expat(?) but after rebuilding my SD card I had to download the newer version and also download the additional software. Is there a repository or link you might share to download the older version without the new additions?

Thank you and have a great morning!

tdicola commented 10 years ago

Yep they should be two similar ways to fix the same issue. If you make the SDL2 change in the code it isn't necessary to do the udev 10-retrogame.rules fix. However if you don't make the SDL2 change in the code and use retrogame as-is, you can add that udev rule file to make it work with SDL2.

Wilstorm commented 10 years ago

@tdicola & @PaintYourDragon - Thank you guys for the fixes to this issue. I am extremely grateful and really appreciate all you did to make it work. I think there are many people that use retrogame.c for their projects that really appreciate it too. You guys are the best! :)

CrazySpence commented 10 years ago

good news, future SDL versions now look for INPUT_KEY instead of just INPUT_KEYBOARD https://bugzilla.libsdl.org/show_bug.cgi?id=2654 In the long run CrazySpence always wins!