Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Davitosan on August 28, 2013, 02:39:07 PM

Title: System Event - APPLICATION FOCUS / PAUSE
Post by: Davitosan on August 28, 2013, 02:39:07 PM
I see this event firing off both when focus is gained and lost. Is there a way to determine which case the event is firing for?

eg: OnApplicationFocus() has a boolean parameter that does this.
Title: Re: System Event - APPLICATION FOCUS / PAUSE
Post by: jeanfabre on September 10, 2013, 03:14:19 AM
Hi,

 Maintain a boolean variable called pause, when the game starts it's false by default, when you get application pause, you set it to true. when you get Application focus, set it back to true.

bye,

 Jean