all-is-cubes
all-is-cubes copied to clipboard
Gamepad support
Enable playing All is Cubes on systems that have a gamepad or other non-keyboard input device.
This will likely involve, or at least benefit from, implementing customizable ~~key~~bindings (and user preferences support to store them). It will also require finding a library to receive such input events (winit
does not yet), except on web where we do all our own input anyway.
It will also require focus/cursor for navigating menus.
gilrs
seems to be well regarded. There are also some binding management libraries that use it, which I should review for suitability to solve even more problems.
Commit 59465f16a91d5ece08ef7cb5698519157a8976b4 adds a very minimal amount of gilrs
glue. We definitely need more general binding management to be able to do much with this, as well as teaching InputProcessor
about analog axis inputs.