Techokami / SonicWorldsNext

Official development repository for the successor to Sonic Worlds Delta
MIT License
139 stars 29 forks source link

Analog-friendly menus #173

Closed Caverns4 closed 3 months ago

Caverns4 commented 3 months ago

Re-coded the input handling in the character select and pause menu. Previously, using an analog stick on a controller in the menus resulted in numerous inputs to Input() detecting every change in magnitude as a separate press. The new system completely prevents this by generating an input vector instead and rounding it, as well as moving the analog input to a separate function to be run in _process() so the timings will always be consistent.