Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17070

cocos2d-x for JS handle event device screen off & on?

$
0
0

@gadapchetvoi wrote:

Hi all and especially Mr @pandamicro

I've refered to this link and I think that all the mobile's events must be there:

http://www.cocos2d-x.org/reference/html5-js/V3.0/symbols/cc.EventListener.html

But I couldn't find out the event to handle when user press physic "lock" button on device (or user switch from my game to home screen or another app) that put my game into sleep/hibernate state. I need the event to pause my game on sleep & let user resume it manually.

Please help me, I've search google & all this forum without result (or questions without answer) !
Thank you !

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17070

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>