event
onWindowFocus (client-side)
Available since version: 0.3.0
This event can be canceled
This event is triggered when main game window gains or loses focus.
Parameters
bool focused
bool
focused:true
when window gets focused, otherwisefalse
.