Working title: The locked Room

This week update. I manage to update all the game menu & gameplay to support a gamepad. At first, I wanted to be “lazy” & have both gamepad & mouse coexisting, which means mouse cursor on screen & activated even when you use controller but it doesn’t work well, so I have to add some custom code to make detect one of mouse/gamepad is currently use, & make them work as appropriate, & also making the switch seamless.

I was resisting doing this because other than its a lot of work, its prone to bugs. i.e You can’t use the gamepad if the game detects you are in mouse/keyboard mode & via visa. But I think I manage to make the code fairly elegant & not error/bug-prone, so I am happy.