Screen doesn't lock while app is running.

Monkey Targets Forums/iOS/Screen doesn't lock while app is running.

Alex(Posted 2014) [#1]
Hello!

I noticed all games don't prevent autolock. But my does.
Is that something wrong with my code? Or is it a Monkey feature?


Desperado(Posted 2014) [#2]
You need to set the #IOS_ACCELEROMETER_ENABLED value to False. It set to True in the iOS target's CONFIG.MONKEY file.


Alex(Posted 2014) [#3]
Thank you!

Note: Screen also doesn't lock when you in debug mode and/or charging )