dxxb / sim-arduboy

Arduboy board implementation using simavr
GNU General Public License v3.0
22 stars 8 forks source link

Open all available SDL game controllers #14

Closed ali1234 closed 6 years ago

ali1234 commented 6 years ago

If the game controllers are not opened you will not receive any events.

This patch simply opens all available joysticks as game controllers, which guarantees we open the one the user wants. There should probably be a command line option to select a specific controller in case the user has some weird controller than causes problems.

dxxb commented 6 years ago

Cool contribution, thank you! I suppose enumerating and selecting a controller on the command line would be a nice addition. Maybe something for me to look at next weekend.