Whether the browser window reports the game's focus: its blur, focus
and visibilitychange events are what emit the engine's event.BLUR and
event.FOCUS.
This decides WHO reports that the player switched away. What the game DOES
then is decided by the application's pauseOnBlur, stopOnBlur and
resumeOnFocus flags: pause or stop the game, silence its sound effects,
release its held keys, and undo it on focus. See setFocusEvents for
when to turn this off rather than the flags.
Read this binding to inspect the current value; the write surface is
setFocusEvents.
Whether the browser window reports the game's focus: its
blur,focusandvisibilitychangeevents are what emit the engine'sevent.BLURandevent.FOCUS.This decides WHO reports that the player switched away. What the game DOES then is decided by the application's
pauseOnBlur,stopOnBlurandresumeOnFocusflags: pause or stop the game, silence its sound effects, release its held keys, and undo it on focus. See setFocusEvents for when to turn this off rather than the flags.Read this binding to inspect the current value; the write surface is setFocusEvents.