playMaker

Author Topic: System Event - APPLICATION FOCUS / PAUSE  (Read 2907 times)

Davitosan

  • Playmaker Newbie
  • *
  • Posts: 1
System Event - APPLICATION FOCUS / PAUSE
« 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.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: System Event - APPLICATION FOCUS / PAUSE
« Reply #1 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