Returns true when the game window is the focused, active window. Synthetic input only lands while this is true, so it is worth checking before a click or key that has to register. Also registered as iswindowactive, isgameactive.

Returns

boolean
true if the game window is focused.

Example