SDL2 Couldn't open any game controllers


#1

Hi,

Just wondering whether anyone has successfully got there own SDL2 project running with game controller support? My game is crashing on launch due to not being able to open any games controllers. My dev machine works fine with a USB controller, but after compiling on my Raspberry Pi and deploying to the GameShell it crashes.

Without controller support, the game runs fine. Not sure what the issue could be?


#2

So it turns out that the gamepad is actually a keyboard as far as SDL2 is concerned. Removing the game controller code and mapping the keys to match those in the Clockwork Keypad Github repo, fixed things.