mkst / sm64-port

My mirror of the sm64-port. You probably want to look at the 3DS port branch: https://github.com/mkst/sm64-port/tree/3ds-port
https://discord.gg/7bcNTPK
245 stars 32 forks source link

Disable touch screen backlight when not in use. #2

Closed vaguerant closed 4 years ago

vaguerant commented 4 years ago

This basically just cribs my code from OpenLara, meaning it's equally as bad as the code I wrote then. That said, it all seems to work. Feel free to reject, rework, whatever you want, I'm not attached to this.

In the process of testing this, I did a lot of sleeping/waking and suspending/restoring to confirm everything in that area worked correctly. One thing I did find that's not caused this PR is that suspending and restoring while the printf menu is up will cause there to be no picture once you resume game. Suspending and restoring again during gameplay resolves this, but it probably needs a proper fix.

mkst commented 4 years ago

Awesome, let me try this out and see if I can fix the pause/resume issue at the same time :+1: