Techokami / SonicWorldsNext

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

Analog-friendly menus #173

Closed Caverns4 closed 4 months ago

Caverns4 commented 4 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.