Skip to content

window_has_focus

CryoEagle edited this page Jan 11, 2019 · 3 revisions

window_has_focus

Returns if window is focused

Syntax:

window_has_focus()

Returns: bool

Description:

Returns if window is focused, can be used for pausing game when minimalizing the window.

Example:

bool focus = window_has_focus(); show_debug_message(focus.ToString());


The above code will check if window is focused or not, result is saved to `bool` focus then converted to `string` and sended to debug output 

Back to [window-functions](https://github.com/lofcz/SimplexRpgEngine/wiki/window-functions)

Clone this wiki locally