Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Patches in support for joystick controls via SDL. It's a little wonky due to the way GearHead uses input and due to me not wanting to do a significant rewrite just for a feature I'm not sure anyone else would want.
There's a configuration UI that can be accessed in-game to map your controller buttons, and it supports mapping hats and axes. The hard-coded defaults should hopefully work for an Xbox 360 controller. The actions mapped to each button can be changed in the config file. The main analog stick axes can be (only) set in the config file, and I've aped the control scheme used by games like Tangledeep, where you select a square with the analog stick and press A to confirm the movement. All buttons repeat if held, also.
There's also a minimal on-screen keyboard that can be enabled via the config file, so that it should be at least technically possible to play the game without needing anything other than a controller.
Finally a simple resolution menu is buried in the play options, mostly so that it's possible to do fullscreen at a resolution other than 800x600.
There are a couple other little tweaks here and there because I couldn't help myself, but nothing that should impact anything.