Page 1 of 1

Detect lock/sleep button iphone

PostPosted: Aug 7, 2009 @ 12:13am
by EarthWind
How do I detect when the user has pressed the lock/sleep button at the top of the iPhone?

I've tried:
OnMinimize
OnButtonDown
OnButtonUp
OnNativeEvent

But nothing is called when I press that button. I'd like to know so I can pause/resume the game.

PostPosted: Aug 10, 2009 @ 7:00pm
by EarthWind
Ok, so it looks like 3.97 now calls

OnMinimize / OnRestore when pressing the lock/standby button on the top of the iPhone!

Thanks!