Handmade Hero»Forums»Code
Ian
5 posts
Day 17 Comments/Bugs
I've noticed that there is a path through the amended controller code that can leave NewController->IsAnalog uninitialised - this happens when neither the stick or the dpad is used.

As there only happens when there is no movement, I'm pretty sure it's not too much of a problem though.
Casey Muratori
801 posts / 1 project
Casey Muratori is a programmer at Molly Rocket on the game 1935 and is the host of the educational programming series Handmade Hero.
Day 17 Comments/Bugs
We should probably assume it's whatever the last thing was... so maybe we should use OldController->IsAnalog? There's no real "right" answer (it's not uninitialized, BTW - it's just whatever the old value was), but using OldController->IsAnalog seems the most sane.

- Casey
Ian
5 posts
Day 17 Comments/Bugs
You're right - perhaps unknown is a better description than uninitialised. I just wanted to note it as I'm in the UK so don't get to see the stream or use the chat live.