playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
System Event - APPLICATION FOCUS / PAUSE
« previous
next »
Print
Pages: [
1
]
Go Down
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.
Logged
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
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
System Event - APPLICATION FOCUS / PAUSE