Open nuess0r opened 4 months ago
Nice!
That looks quite good, and should surely work on all platforms!
Lemme fix the Windows build issue tomorrow, as the build check workflow is broken (after GitHub Actions Windows runners being broken and then fixed again). You may have to rebase on latest master after the fix is pushed to make the build check work, as the workflow file is used from the branch.
The Windows build check is now fixed.
Please rebase onto current master and force-push your branch, then the checks here will probably all be green.
I had a Bluetooth joypad lying around and though that it would be handy to be able to remote control the projectM frontend.
As SDL provides everything needed to handle game controller it was straight forward to add it. I didn't add SDL controller class or so, just extended the SDL window class. Feel free to refactor that if you think this is messy.
Tested on GNU/Linux, Debian Sid, Gnome3
Code comes mainly from this tutorial: https://lazyfoo.net/tutorials/SDL/19_gamepads_and_joysticks/index.php