Partial Controller Support

SimonC4

New Member
Contributor
I've had a tinker with controller support using the libGDX controller extension. It was a bit easier than I expected and have a working example at https://github.com/SimonC4/DestinationSol/tree/controller

Currently it only controls the movement of the ship and does not control any of the menus.

The library doesn't handle disconnect/reconnect so the controller needs to be connected before the game starts. Not sure what would happen if there is more than one controller connected. I think they'd both be able to control the ship.

I've updated the game options to load the controller configuration from the settings.ini file. There are essentially two types of inputs, axes and buttons, and both are configured. These inputs map to a controller code, which is pretty obscure and only known as I've left the debugging code writing to the console. This really needs to have a UI to map the controller keys.
 
Top