isFocused(): boolean

If the game canvas is currently focused.

sincev2000.1