PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Detect lock/sleep button iphone

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.
Ok, so it looks like 3.97 now calls

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

Thanks!