dimanche 1 novembre 2015

Keep screen awake in Cocos2dx

I created a game for Android using Cocos2DX 3.4. I'm using the acelerometer for the player to move around the screen so I don't need to touch the screen. The problem is that the screen turn off when I play for a while. I need to know how to keep the phone awake even if I don't touch the screen.

Aucun commentaire:

Enregistrer un commentaire