Posted September 29, 2022 by bradenbest
Joypad support! That's what's new.
And it was a real pain to implement. The API is easy enough to understand, you just have to poll the state of the controller instead of registering event handlers. The reason this was a pain to implement is because the Gamepad API is locked behind HTTPS, so testing it locally is impossible. This is the reason Free Rings received so many updates on the 28th. They were actually release candidates for v1.8 and I was using them to test. I went through 10 of the damn things before I finally got everything working.
The joypad selection is a bit janky but should generally work fine. The first joypad to be "connected" has a permanent reference stored and used until it is disconnected. In the future, I'll probably add a UIMenu to let the player switch.